Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008955, allocations: 97.88 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.007278/0.007278, allocations: 171.7 kB / 16.27 MB, free: 6.648 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.585/1.585, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.811/2.811, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003891, allocations: 16 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.849/0.8494, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001119/0.8506, allocations: 494 kB / 1.024 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.8523, allocations: 1.144 MB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.148e-05/0.8524, allocations: 7.844 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.8524, allocations: 7.938 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.8525, allocations: 3.938 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004606/0.853, allocations: 127.5 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.8531, allocations: 103.8 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.609e-05/0.8532, allocations: 19.95 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.158e-05/0.8533, allocations: 31.92 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.143e-05/0.8534, allocations: 39.83 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.8534, allocations: 8 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.778e-05/0.8535, allocations: 23.97 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.8535, allocations: 7.984 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.968e-05/0.8536, allocations: 61.56 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.8537, allocations: 107.7 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.8538, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8538, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.8538, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005629/0.8543, allocations: 399 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.8544, allocations: 8.031 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.8544, allocations: 8.844 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.8546, allocations: 180.2 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.8546, allocations: 8.375 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.79e-05/0.8546, allocations: 8.375 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.8549, allocations: 70.22 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.8549, allocations: 192 / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.8549, allocations: 7.938 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.8549, allocations: 0 / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.8551, allocations: 51.95 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004805/0.8556, allocations: 328.7 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.8558, allocations: 66.55 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.8559, allocations: 44.95 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.8559, allocations: 4 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.8562, allocations: 99.36 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.8562, allocations: 0 / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004608/0.8566, allocations: 149.5 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.8567, allocations: 63.34 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.128e-05/0.8568, allocations: 117.8 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.8568, allocations: 33.7 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.634e-05/0.8569, allocations: 92.05 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.8569, allocations: 23.73 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.857, allocations: 21.7 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.8571, allocations: 318.8 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.8573, allocations: 67.83 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.8574, allocations: 88.25 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.8577, allocations: 153.8 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8578, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004529/0.8582, allocations: 223.1 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.8583, allocations: 37.69 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.8583, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.8583, allocations: 4 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.285e-05/0.8584, allocations: 16.11 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.8584, allocations: 4 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.8586, allocations: 43.97 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.8587, allocations: 11.98 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001093/0.8588, allocations: 126.2 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.8588, allocations: 7.906 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.8588, allocations: 8.375 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.8589, allocations: 7.984 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.8589, allocations: 0 / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.8589, allocations: 3.984 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004942/0.8594, allocations: 382.8 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8594, allocations: 8 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.863e-05/0.8595, allocations: 19.92 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.8595, allocations: 0 / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.8595, allocations: 7.938 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.8595, allocations: 0 / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.8595, allocations: 0 / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.8598, allocations: 219.3 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.8599, allocations: 92.94 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.8599, allocations: 4 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.86, allocations: 7.984 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.86, allocations: 4 kB / 1.029 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.86, allocations: 7.938 kB / 1.029 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.868e-05/0.8601, allocations: 91.27 kB / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8601, allocations: 0 / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002576/0.8604, allocations: 24 kB / 1.029 GB, free: 9.582 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001592/0.8605, allocations: 115.2 kB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003898/0.8609, allocations: 191.2 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.8609, allocations: 4.25 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.8611, allocations: 39.98 kB / 1.029 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.8613, allocations: 15.98 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.8617, allocations: 183.2 kB / 1.029 GB, free: 9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.862, allocations: 0.6848 MB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.361e-05/0.862, allocations: 11.84 kB / 1.03 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.291e-05/0.862, allocations: 15.38 kB / 1.03 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.862, allocations: 0 / 1.03 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of Templates: time 0.004186/0.8662, allocations: 1.331 MB / 1.031 GB, free: 6.949 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches