Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002102/0.002102, allocations: 194 kB / 16.53 MB, free: 6.391 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.525/1.525, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 64.56 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.4311, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.004258/0.4355, allocations: 1.927 MB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002103/0.4376, allocations: 1.13 MB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.4378, allocations: 4 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004777/0.4383, allocations: 95.55 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.4386, allocations: 91.59 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005218/0.4391, allocations: 161 kB / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003404/0.4395, allocations: 215.5 kB / 1.072 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.4397, allocations: 41.66 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.4399, allocations: 95.61 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.4401, allocations: 111.5 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.4402, allocations: 16 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.4403, allocations: 55.95 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.4404, allocations: 59.83 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.4406, allocations: 87.36 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004465/0.441, allocations: 271.4 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.441, allocations: 0 / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.224e-06/0.441, allocations: 0 / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.4411, allocations: 0 / 1.072 GB, free: 6.051 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001078/0.4421, allocations: 0.5413 MB / 1.073 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.4422, allocations: 12.03 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.4423, allocations: 24.66 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.4428, allocations: 291.3 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.4428, allocations: 8 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.4428, allocations: 8 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.4432, allocations: 114.5 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.4432, allocations: 4 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.4432, allocations: 7.938 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4432, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002852/0.4435, allocations: 83.92 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.4444, allocations: 460.3 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.4448, allocations: 134.6 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.445, allocations: 56.83 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.445, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003274/0.4454, allocations: 123.3 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.923e-06/0.4454, allocations: 0 / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006508/0.446, allocations: 255 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.4461, allocations: 55.41 kB / 1.075 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.4464, allocations: 334.5 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.4465, allocations: 29.7 kB / 1.075 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4466, allocations: 132.4 kB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.4467, allocations: 47.44 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/0.4468, allocations: 57.69 kB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4469, allocations: 334.8 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.4471, allocations: 83.95 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.4474, allocations: 134.1 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.4478, allocations: 191.6 kB / 1.076 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.4478, allocations: 3.938 kB / 1.076 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005749/0.4484, allocations: 284.2 kB / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.4484, allocations: 4.156 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.4484, allocations: 8 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.4485, allocations: 3.938 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.4487, allocations: 39.97 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.4487, allocations: 7.938 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.4489, allocations: 19.89 kB / 1.076 GB, free: 1.969 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.4489, allocations: 12 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 (decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 0.0001906/0.4491, allocations: 157.8 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.4492, allocations: 31.66 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.065e-05/0.4492, allocations: 22.19 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.4492, allocations: 0 / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4492, allocations: 0 / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.4493, allocations: 7.984 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009003/0.4502, allocations: 0.5548 MB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.4502, allocations: 4 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.182e-05/0.4503, allocations: 11.98 kB / 1.077 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.4503, allocations: 4 kB / 1.077 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.4503, allocations: 4 kB / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4503, allocations: 0 / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4503, allocations: 0 / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.4509, allocations: 303 kB / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.451, allocations: 92.92 kB / 1.077 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.4511, allocations: 8 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.4512, allocations: 19.91 kB / 1.077 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4513, allocations: 11.98 kB / 1.077 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.4513, allocations: 8 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002632/0.4516, allocations: 209.9 kB / 1.078 GB, free: 440 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4516, allocations: 0 / 1.078 GB, free: 440 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003597/0.452, allocations: 51.84 kB / 1.078 GB, free: 388 kB / 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: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001319/0.4533, allocations: 436.1 kB / 1.078 GB, free: 108 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005485/0.4539, allocations: 183.8 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4539, allocations: 0 / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.4541, allocations: 80.2 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.4546, allocations: 52.31 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008239/0.4554, allocations: 400.2 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.4558, allocations: 0.7519 MB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.893e-05/0.4559, allocations: 33.92 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.373e-05/0.456, allocations: 23.44 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of SimCode: time 7.02e-07/0.456, allocations: 0 / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of Templates: time 0.007498/0.4635, allocations: 3.035 MB / 1.082 GB, free: 11.54 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches