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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_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.008207/0.008207, allocations: 101.6 kB / 15.73 MB, free: 5.992 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.001797/0.001797, allocations: 190.9 kB / 16.67 MB, free: 5.922 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 63.91 kB / 1.054 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.12/1.122, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.004428/1.126, allocations: 1.929 MB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002247/1.128, allocations: 1.118 MB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/1.129, allocations: 4 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005619/1.129, allocations: 95.56 kB / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004792/1.13, allocations: 91.58 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000618/1.13, allocations: 163.5 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004275/1.131, allocations: 211.4 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/1.131, allocations: 57.62 kB / 1.211 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/1.131, allocations: 95.61 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/1.132, allocations: 107.5 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.38e-05/1.132, allocations: 12 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/1.132, allocations: 55.97 kB / 1.211 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/1.132, allocations: 59.81 kB / 1.211 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001273/1.132, allocations: 99.41 kB / 1.211 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004977/1.133, allocations: 261.3 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.133, allocations: 0 / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.084e-06/1.133, allocations: 0 / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.948e-06/1.133, allocations: 4 kB / 1.212 GB, free: 9.227 MB / 0.9356 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.001207/1.134, allocations: 0.5413 MB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.426e-05/1.134, allocations: 8.031 kB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.398e-05/1.134, allocations: 38.75 kB / 1.212 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.764e-05/1.134, allocations: 40.52 kB / 1.212 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004911/1.135, allocations: 283 kB / 1.212 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/1.135, allocations: 11.98 kB / 1.212 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/1.135, allocations: 12 kB / 1.212 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/1.135, allocations: 113.6 kB / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/1.135, allocations: 7.875 kB / 1.213 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/1.135, allocations: 4 kB / 1.213 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/1.135, allocations: 4 kB / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/1.135, allocations: 87.92 kB / 1.213 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008201/1.136, allocations: 448.4 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/1.137, allocations: 130.6 kB / 1.213 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/1.137, allocations: 56.83 kB / 1.213 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/1.137, allocations: 4 kB / 1.213 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/1.137, allocations: 130.1 kB / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 2.284e-06/1.137, allocations: 0 / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.0007006/1.138, allocations: 245.3 kB / 1.214 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/1.138, allocations: 63.38 kB / 1.214 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003769/1.138, allocations: 330.4 kB / 1.214 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/1.138, allocations: 33.7 kB / 1.214 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/1.138, allocations: 124.5 kB / 1.214 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.371e-05/1.138, allocations: 47.39 kB / 1.214 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/1.139, allocations: 69.62 kB / 1.214 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001133/1.139, allocations: 330.8 kB / 1.215 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/1.139, allocations: 83.95 kB / 1.215 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/1.139, allocations: 138.3 kB / 1.215 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/1.14, allocations: 191.8 kB / 1.215 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.14, allocations: 4 kB / 1.215 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005556/1.14, allocations: 273.1 kB / 1.215 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/1.14, allocations: 8 kB / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/1.14, allocations: 0 / 1.215 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/1.14, allocations: 8 kB / 1.215 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/1.14, allocations: 43.91 kB / 1.215 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/1.14, allocations: 4.156 kB / 1.215 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/1.141, allocations: 27.83 kB / 1.215 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/1.141, allocations: 12 kB / 1.215 GB, free: 5.074 MB / 0.9356 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.00017/1.141, allocations: 157.7 kB / 1.215 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.223e-05/1.141, allocations: 27.69 kB / 1.215 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.87e-05/1.141, allocations: 22.19 kB / 1.215 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/1.141, allocations: 4 kB / 1.215 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/1.141, allocations: 0 / 1.215 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/1.141, allocations: 7.984 kB / 1.216 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008836/1.142, allocations: 0.545 MB / 1.216 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.142, allocations: 0 / 1.216 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/1.142, allocations: 19.98 kB / 1.216 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/1.142, allocations: 0 / 1.216 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/1.142, allocations: 0 / 1.216 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/1.142, allocations: 4 kB / 1.216 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/1.142, allocations: 4 kB / 1.216 GB, free: 4.223 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/1.143, allocations: 305.3 kB / 1.216 GB, free: 3.91 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.795e-05/1.143, allocations: 96.92 kB / 1.216 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/1.143, allocations: 4 kB / 1.216 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/1.143, allocations: 11.98 kB / 1.216 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/1.143, allocations: 23.97 kB / 1.216 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/1.143, allocations: 15.88 kB / 1.217 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002143/1.143, allocations: 205.9 kB / 1.217 GB, free: 3.543 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.3e-07/1.143, allocations: 4 kB / 1.217 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003436/1.144, allocations: 55.84 kB / 1.217 GB, free: 3.484 MB / 0.9356 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.001792/1.145, allocations: 1.141 MB / 1.218 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004901/1.146, allocations: 181.5 kB / 1.218 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.146, allocations: 0 / 1.218 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/1.146, allocations: 76.27 kB / 1.218 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/1.147, allocations: 47.75 kB / 1.218 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/1.15, allocations: 2.579 MB / 1.221 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/1.15, allocations: 0.7557 MB / 1.221 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001172/1.15, allocations: 29.94 kB / 1.221 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/1.151, allocations: 75.41 kB / 1.222 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of SimCode: time 4.91e-07/1.151, allocations: 0 / 1.222 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/1.177, allocations: 5.524 MB / 1.227 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/9.126, allocations: 13.64 kB / 1.227 GB, free: 9.211 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,reaToInt.y,cha.u,cha.up,cha.y,cha.down,changeSampler.u,changeSampler.y,increaseSampler.u,increaseSampler.y,decreaseSampler.u,decreaseSampler.y Variables in the result:cha.down,cha.pre_u_start,cha.u,cha.up,cha.y,changeSampler.trigger,changeSampler.u,changeSampler.y,changeSampler.y_start,decreaseSampler.trigger,decreaseSampler.u,decreaseSampler.y,decreaseSampler.y_start,increaseSampler.trigger,increaseSampler.u,increaseSampler.y,increaseSampler.y_start,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,timTabLin.extrapolation,timTabLin.offset[1],timTabLin.smoothness,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.timeScale,timTabLin.y[1],time