Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007652/0.007652, allocations: 172.2 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.045/2.045, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002678, allocations: 12 kB / 0.8161 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4853, allocations: 142.4 MB / 0.9552 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.0008929/0.4862, allocations: 0.9387 MB / 0.9561 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005913/0.4868, allocations: 375.8 kB / 0.9564 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.578e-05/0.4868, allocations: 3.938 kB / 0.9564 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.4869, allocations: 0 / 0.9564 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.854e-05/0.4869, allocations: 5.125 kB / 0.9564 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.4872, allocations: 80.42 kB / 0.9565 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.117e-05/0.4873, allocations: 19.02 kB / 0.9565 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.4873, allocations: 5.141 kB / 0.9565 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.738e-05/0.4874, allocations: 3.438 kB / 0.9565 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.226e-05/0.4874, allocations: 11.3 kB / 0.9566 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.668e-06/0.4874, allocations: 5.156 kB / 0.9566 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.4876, allocations: 82.86 kB / 0.9566 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.4876, allocations: 9.203 kB / 0.9566 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.566e-05/0.4876, allocations: 29.14 kB / 0.9567 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.4877, allocations: 89.34 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.4877, allocations: 0 / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4878, allocations: 0.8438 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.4878, allocations: 0 / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002768/0.488, allocations: 371.1 kB / 0.9571 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.4881, allocations: 13.34 kB / 0.9571 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.15e-05/0.4881, allocations: 31.78 kB / 0.9572 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.046e-05/0.4882, allocations: 2.5 kB / 0.9572 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.25e-05/0.4882, allocations: 161.7 kB / 0.9573 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.4882, allocations: 1.812 kB / 0.9573 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.4882, allocations: 3.25 kB / 0.9573 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.817e-05/0.4883, allocations: 47.31 kB / 0.9574 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.4884, allocations: 9.094 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.4884, allocations: 0 / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.4884, allocations: 4 kB / 0.9574 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.625e-05/0.4884, allocations: 8.406 kB / 0.9574 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002079/0.4886, allocations: 244 kB / 0.9576 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.856e-05/0.4887, allocations: 37.91 kB / 0.9577 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.812e-05/0.4887, allocations: 12.45 kB / 0.9577 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.4887, allocations: 4 kB / 0.9577 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/0.4888, allocations: 69.08 kB / 0.9577 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.4889, allocations: 0 / 0.9577 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001572/0.489, allocations: 73.23 kB / 0.9578 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.012e-05/0.489, allocations: 52.97 kB / 0.9579 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.678e-05/0.4891, allocations: 95.3 kB / 0.9579 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.4891, allocations: 27.27 kB / 0.958 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.254e-05/0.4891, allocations: 89.52 kB / 0.9581 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.233e-05/0.4891, allocations: 12.86 kB / 0.9581 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/0.4892, allocations: 16.84 kB / 0.9581 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.198e-05/0.4892, allocations: 312 kB / 0.9584 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.816e-05/0.4892, allocations: 12.77 kB / 0.9584 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.437e-05/0.4892, allocations: 35.56 kB / 0.9584 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.462e-05/0.4893, allocations: 58.08 kB / 0.9585 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4893, allocations: 4.938 kB / 0.9585 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.066e-05/0.4894, allocations: 69.91 kB / 0.9586 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.4894, allocations: 5.969 kB / 0.9586 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4894, allocations: 1.062 kB / 0.9586 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.4894, allocations: 1.188 kB / 0.9586 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.166e-05/0.4895, allocations: 11.58 kB / 0.9586 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.4895, allocations: 5.531 kB / 0.9586 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.008e-05/0.4895, allocations: 1.281 kB / 0.9586 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.4895, allocations: 3.25 kB / 0.9586 GB, free: 4.508 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.4896, allocations: 120.8 kB / 0.9587 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-06/0.4896, allocations: 1.25 kB / 0.9587 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.477e-05/0.4896, allocations: 3.562 kB / 0.9587 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4896, allocations: 1.406 kB / 0.9587 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.4896, allocations: 0 / 0.9587 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4896, allocations: 9.5 kB / 0.9587 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.4898, allocations: 311.4 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.4898, allocations: 0 / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.529e-05/0.4898, allocations: 7.781 kB / 0.959 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4898, allocations: 0 / 0.959 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.4898, allocations: 5.859 kB / 0.959 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.4898, allocations: 0 / 0.959 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4898, allocations: 0 / 0.959 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.752e-05/0.4899, allocations: 158.5 kB / 0.9592 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.326e-05/0.4899, allocations: 90.42 kB / 0.9593 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.49, allocations: 5.984 kB / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.27e-05/0.49, allocations: 0 / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.49, allocations: 1.125 kB / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.49, allocations: 2.219 kB / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.445e-05/0.49, allocations: 77.75 kB / 0.9593 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.4901, allocations: 0 / 0.9593 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002415/0.4903, allocations: 36.39 kB / 0.9594 GB, free: 3.68 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004254/0.4907, allocations: 0.7627 MB / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.571e-05/0.4908, allocations: 35.52 kB / 0.9602 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.4908, allocations: 5.625 kB / 0.9602 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.799e-05/0.4909, allocations: 12.53 kB / 0.9602 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001761/0.491, allocations: 3.281 kB / 0.9602 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.4917, allocations: 1.256 MB / 0.9614 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.131e-05/0.4917, allocations: 0.6746 MB / 0.9621 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.626e-05/0.4918, allocations: 6.734 kB / 0.9621 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.809e-05/0.4918, allocations: 12.81 kB / 0.9621 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.4918, allocations: 0 / 0.9621 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.166/2.658, allocations: 1.648 MB / 0.9637 GB, free: 204 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/2.658, allocations: 272.1 kB / 0.9639 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.44/4.098, allocations: 0 / 0.9639 GB, free: 15.9 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:p,seed,time,y