Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",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.001254/0.001254, 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.001116/0.001116, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 63.91 kB / 0.8127 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5857/0.587, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.002792/0.5899, allocations: 1.904 MB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.5914, allocations: 1.123 MB / 0.9527 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.5915, allocations: 2.875 kB / 0.9527 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003578/0.5919, allocations: 93.88 kB / 0.9528 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.5921, allocations: 90.41 kB / 0.9529 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.5925, allocations: 169.2 kB / 0.953 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.5928, allocations: 215.1 kB / 0.9532 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.593, allocations: 51.55 kB / 0.9533 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.5931, allocations: 94.09 kB / 0.9534 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.5932, allocations: 105.2 kB / 0.9535 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.5933, allocations: 13.19 kB / 0.9535 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.5934, allocations: 62.95 kB / 0.9535 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.2e-05/0.5935, allocations: 54.8 kB / 0.9536 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.907e-05/0.5936, allocations: 89.83 kB / 0.9537 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.5939, allocations: 266 kB / 0.9539 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.5939, allocations: 1.062 kB / 0.9539 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5939, allocations: 0 / 0.9539 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.5939, allocations: 0 / 0.9539 GB, free: 5.938 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008244/0.5947, allocations: 0.5456 MB / 0.9545 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.5948, allocations: 10.28 kB / 0.9545 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.554e-05/0.5949, allocations: 46.08 kB / 0.9545 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.5949, allocations: 23.28 kB / 0.9545 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.5952, allocations: 287.5 kB / 0.9548 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.5953, allocations: 12.33 kB / 0.9548 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.5953, allocations: 8.031 kB / 0.9548 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.5956, allocations: 122.4 kB / 0.955 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.5956, allocations: 1.312 kB / 0.955 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.5956, allocations: 13.42 kB / 0.955 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.5956, allocations: 1.312 kB / 0.955 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.5959, allocations: 82.36 kB / 0.9551 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.5965, allocations: 452.5 kB / 0.9555 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.5968, allocations: 127 kB / 0.9556 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.5969, allocations: 65.86 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.597, allocations: 0 / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.5972, allocations: 135.2 kB / 0.9558 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.5972, allocations: 0 / 0.9558 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0006224/0.5978, allocations: 241.1 kB / 0.956 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.5979, allocations: 62.95 kB / 0.9561 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.5982, allocations: 330.8 kB / 0.9564 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.5982, allocations: 32.42 kB / 0.9564 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.665e-05/0.5983, allocations: 131.9 kB / 0.9566 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.492e-05/0.5983, allocations: 41.69 kB / 0.9566 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.5984, allocations: 60.47 kB / 0.9567 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.2e-05/0.5985, allocations: 341.9 kB / 0.957 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.5987, allocations: 85.67 kB / 0.9571 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.5989, allocations: 127.8 kB / 0.9572 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.5993, allocations: 190.3 kB / 0.9574 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5993, allocations: 0 / 0.9574 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005087/0.5998, allocations: 283.5 kB / 0.9576 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.5998, allocations: 5.438 kB / 0.9576 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.5998, allocations: 1.938 kB / 0.9576 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.5999, allocations: 3.188 kB / 0.9576 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.6001, allocations: 42.38 kB / 0.9577 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.6001, allocations: 2.75 kB / 0.9577 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.6002, allocations: 25.45 kB / 0.9577 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.6003, allocations: 12.25 kB / 0.9577 GB, free: 2.914 MB / 0.7169 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.0001085/0.6004, allocations: 161 kB / 0.9579 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.6004, allocations: 30.64 kB / 0.9579 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.6005, allocations: 22.44 kB / 0.9579 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.6005, allocations: 1.375 kB / 0.9579 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.6005, allocations: 3.938 kB / 0.9579 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.6005, allocations: 5.359 kB / 0.9579 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000662/0.6012, allocations: 0.5603 MB / 0.9585 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.6012, allocations: 0 / 0.9585 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.409e-05/0.6013, allocations: 17.17 kB / 0.9585 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.6013, allocations: 1.188 kB / 0.9585 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.6013, allocations: 5.094 kB / 0.9585 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6013, allocations: 1.125 kB / 0.9585 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6013, allocations: 1.188 kB / 0.9585 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004225/0.6017, allocations: 297 kB / 0.9588 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.6018, allocations: 109.9 kB / 0.9589 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.6018, allocations: 2.156 kB / 0.9589 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.602, allocations: 15.98 kB / 0.9589 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.602, allocations: 18.47 kB / 0.9589 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.6021, allocations: 4.531 kB / 0.9589 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000174/0.6022, allocations: 220 kB / 0.9591 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6022, allocations: 0.875 kB / 0.9592 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003178/0.6026, allocations: 39.78 kB / 0.9592 GB, free: 1.75 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: 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.001406/0.604, allocations: 1.146 MB / 0.9603 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004746/0.6045, allocations: 191 kB / 0.9605 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6045, allocations: 1.344 kB / 0.9605 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.6047, allocations: 69.98 kB / 0.9606 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.6051, allocations: 73.25 kB / 0.9606 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.6081, allocations: 2.567 MB / 0.9631 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.6084, allocations: 0.7478 MB / 0.9639 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001103/0.6085, allocations: 29.2 kB / 0.9639 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.6086, allocations: 74.03 kB / 0.964 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.6086, allocations: 0 / 0.964 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.6325, allocations: 5.318 MB / 0.9692 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.469, allocations: 11.38 kB / 0.9692 GB, free: 11.34 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches