Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_10_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.006433/0.006433, allocations: 101.4 kB / 15.73 MB, free: 5.953 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.001505/0.001505, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.713/2.713, allocations: 437 MB / 0.7105 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 63.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3225, allocations: 151.6 MB / 1.166 GB, free: 7.266 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.004316/0.3269, allocations: 1.933 MB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002522/0.3295, allocations: 1.108 MB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002806/0.3298, allocations: 11.88 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000657/0.3305, allocations: 99.56 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0006148/0.3312, allocations: 99.58 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006881/0.3319, allocations: 159 kB / 1.169 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004975/0.3324, allocations: 211.5 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.3327, allocations: 49.66 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.3329, allocations: 111.5 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.3331, allocations: 91.66 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.3332, allocations: 12 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.3334, allocations: 63.84 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.3335, allocations: 59.81 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3336, allocations: 83.48 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.3341, allocations: 282.6 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3341, allocations: 0 / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3341, allocations: 0 / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.3341, allocations: 4 kB / 1.17 GB, free: 2.895 MB / 0.92 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.001124/0.3352, allocations: 0.5297 MB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.3353, allocations: 8.031 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.81e-05/0.3354, allocations: 42.73 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.771e-05/0.3355, allocations: 24.66 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004804/0.3359, allocations: 287 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.336, allocations: 11.98 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.336, allocations: 16 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.3364, allocations: 113.6 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3364, allocations: 7.938 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3364, allocations: 3.938 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3364, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.3367, allocations: 90.55 kB / 1.172 GB, free: 1.676 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008227/0.3376, allocations: 456.3 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003515/0.3379, allocations: 138.6 kB / 1.172 GB, free: 1.035 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.3381, allocations: 56.81 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.3381, allocations: 4 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.3384, allocations: 123.5 kB / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/0.3385, allocations: 0 / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of matching and sorting (n=16): time 0.0006808/0.3391, allocations: 247.3 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.3392, allocations: 63.39 kB / 1.173 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.3396, allocations: 326.5 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.3396, allocations: 33.7 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.3397, allocations: 140.4 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.3398, allocations: 35.62 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.3399, allocations: 65.62 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002043/0.3401, allocations: 338.8 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.3403, allocations: 79.95 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.3406, allocations: 130.6 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.341, allocations: 192.9 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.341, allocations: 0 / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000561/0.3415, allocations: 283.4 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3416, allocations: 4 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3416, allocations: 4 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3416, allocations: 0 / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.3418, allocations: 47.91 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3418, allocations: 4 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.342, allocations: 23.88 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.342, allocations: 8 kB / 1.174 GB, free: 14.76 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.0001553/0.3422, allocations: 169.7 kB / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.3422, allocations: 23.72 kB / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.047e-05/0.3423, allocations: 26.17 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3423, allocations: 0 / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3423, allocations: 0 / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3423, allocations: 0 / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008175/0.3432, allocations: 0.545 MB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3432, allocations: 4 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/0.3433, allocations: 15.98 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.3433, allocations: 3.984 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.3433, allocations: 7.984 kB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3433, allocations: 0 / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3433, allocations: 0 / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004465/0.3438, allocations: 304.3 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.3438, allocations: 92.92 kB / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.3439, allocations: 7.984 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.344, allocations: 19.98 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/0.3441, allocations: 15.98 kB / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3441, allocations: 11.92 kB / 1.175 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002013/0.3443, allocations: 206 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3443, allocations: 0 / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003204/0.3447, allocations: 51.89 kB / 1.176 GB, free: 13.18 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.001561/0.3462, allocations: 1.138 MB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004639/0.3467, allocations: 187.8 kB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3467, allocations: 0 / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.3469, allocations: 75.89 kB / 1.177 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.3474, allocations: 52.23 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/0.3507, allocations: 2.576 MB / 1.18 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.3511, allocations: 0.7519 MB / 1.18 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001193/0.3512, allocations: 37.92 kB / 1.18 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.3514, allocations: 75.41 kB / 1.18 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of SimCode: time 6.61e-07/0.3514, allocations: 0 / 1.18 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.3746, allocations: 5.426 MB / 1.186 GB, free: 3 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.409, allocations: 8.984 kB / 1.186 GB, free: 2.992 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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