Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001317/0.001317, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001716/0.001716, allocations: 192.8 kB / 16.25 MB, free: 6.152 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.522/1.522, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.045/3.045, allocations: 472.6 MB / 0.7448 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 64.42 kB / 0.9116 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4055, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002536/0.4082, allocations: 0.8085 MB / 1.069 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.4099, allocations: 1.151 MB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.576e-05/0.41, allocations: 0 / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.77e-05/0.4101, allocations: 3.938 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.4102, allocations: 11.92 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.4108, allocations: 115.4 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.411, allocations: 123.8 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.4111, allocations: 19.97 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.4112, allocations: 43.91 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.276e-05/0.4113, allocations: 39.83 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.4113, allocations: 12 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.684e-05/0.4114, allocations: 35.97 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.372e-05/0.4115, allocations: 11.98 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.4115, allocations: 43.84 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.4117, allocations: 103.7 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.4117, allocations: 0 / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.904e-06/0.4118, allocations: 0 / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.4118, allocations: 0 / 1.07 GB, free: 8.207 MB / 0.8262 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.0006376/0.4124, allocations: 413.2 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.4125, allocations: 12.03 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/0.4125, allocations: 16.78 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.4126, allocations: 172.4 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.4127, allocations: 8.375 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.4127, allocations: 4.375 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.4129, allocations: 66.22 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.4129, allocations: 192 / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.4129, allocations: 3.938 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.413, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.4131, allocations: 47.95 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.4137, allocations: 336.6 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.4139, allocations: 62.48 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.414, allocations: 40.95 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.414, allocations: 0 / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.4144, allocations: 91.36 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.4144, allocations: 0 / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004777/0.4149, allocations: 141.5 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4149, allocations: 51.41 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.4151, allocations: 121.8 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.4151, allocations: 33.7 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.786e-05/0.4152, allocations: 84.14 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.4152, allocations: 19.75 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/0.4153, allocations: 41.69 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4155, allocations: 326.8 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.4156, allocations: 51.95 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.4158, allocations: 80.25 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.4161, allocations: 149.8 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.4161, allocations: 0 / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004327/0.4165, allocations: 211.2 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.4166, allocations: 41.72 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4166, allocations: 0 / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.4166, allocations: 0 / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.4167, allocations: 11.98 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.4167, allocations: 4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.417, allocations: 43.88 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.417, allocations: 11.98 kB / 1.073 GB, free: 5.281 MB / 0.8262 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.0001065/0.4171, allocations: 127.2 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.4171, allocations: 7.906 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.4172, allocations: 8.375 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4172, allocations: 7.938 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4172, allocations: 3.984 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4172, allocations: 0 / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.4177, allocations: 374.5 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4177, allocations: 3.938 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.4177, allocations: 11.98 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4177, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.4178, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4178, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4178, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.4181, allocations: 215.7 kB / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.4182, allocations: 85 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.4182, allocations: 8 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/0.4183, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.4183, allocations: 3.984 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4184, allocations: 11.94 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.505e-05/0.4184, allocations: 91.27 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4184, allocations: 3.938 kB / 1.074 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002715/0.4187, allocations: 28 kB / 1.074 GB, free: 4.207 MB / 0.8262 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.0002142/0.4189, allocations: 107.2 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004091/0.4194, allocations: 183.2 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4194, allocations: 0 / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.4195, allocations: 32.17 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.4198, allocations: 24.8 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004542/0.4203, allocations: 170.7 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4206, allocations: 0.6924 MB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.886e-05/0.4206, allocations: 7.781 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.4207, allocations: 11.44 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.4207, allocations: 0 / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of Templates: time 0.004312/0.425, allocations: 1.41 MB / 1.076 GB, free: 1.527 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches