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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 387.1 MB / 399.7 MB, free: 9.445 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 168.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 221.3 MB / 0.7871 GB, free: 12.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009682/0.0009685, allocations: 104.6 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.049e-05, allocations: 8 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3131, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9981/1.311, allocations: 153.6 MB / 1.362 GB, free: 18.82 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/1.312, allocations: 75.22 kB / 1.362 GB, free: 18.82 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01833/1.33, allocations: 7.204 MB / 1.37 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.33, allocations: 0 / 1.37 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.066e-05/1.33, allocations: 8.125 kB / 1.37 GB, free: 34.13 MB / 0.8386 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.0005846/1.331, allocations: 0.4904 MB / 1.37 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/1.331, allocations: 7.781 kB / 1.37 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/1.331, allocations: 25.66 kB / 1.37 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/1.331, allocations: 308.3 kB / 1.37 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/1.331, allocations: 7.562 kB / 1.37 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/1.331, allocations: 13.11 kB / 1.37 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/1.331, allocations: 104.4 kB / 1.37 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/1.331, allocations: 3.984 kB / 1.37 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/1.331, allocations: 6.406 kB / 1.37 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/1.331, allocations: 3.812 kB / 1.37 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/1.332, allocations: 58.47 kB / 1.371 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/1.332, allocations: 485.5 kB / 1.371 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/1.332, allocations: 109.6 kB / 1.371 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/1.332, allocations: 45.03 kB / 1.371 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/1.332, allocations: 7.75 kB / 1.371 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/1.333, allocations: 114.4 kB / 1.371 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/1.333, allocations: 0 / 1.371 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0002774/1.333, allocations: 163.4 kB / 1.371 GB, free: 33 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/1.333, allocations: 59.09 kB / 1.371 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/1.333, allocations: 306.6 kB / 1.372 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/1.333, allocations: 39.2 kB / 1.372 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.193e-05/1.333, allocations: 135.3 kB / 1.372 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/1.333, allocations: 41.12 kB / 1.372 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/1.333, allocations: 3.719 kB / 1.372 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 5.812e-05/1.333, allocations: 333.9 kB / 1.372 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/1.334, allocations: 86.84 kB / 1.372 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/1.334, allocations: 125.3 kB / 1.372 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/1.334, allocations: 88.56 kB / 1.373 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.334, allocations: 0 / 1.373 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003317/1.334, allocations: 266.7 kB / 1.373 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.334, allocations: 11.95 kB / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/1.334, allocations: 3.875 kB / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/1.334, allocations: 0 / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/1.334, allocations: 47.33 kB / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/1.334, allocations: 3.906 kB / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/1.335, allocations: 25.27 kB / 1.373 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/1.335, allocations: 14.78 kB / 1.373 GB, free: 32.25 MB / 0.8386 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 ($PRE.decreaseSampler.y,decreaseSampler.y,$PRE.increaseSampler.y,increaseSampler.y,$PRE.changeSampler.y,changeSampler.y,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$whenCondition3,$whenCondition1,$PRE.cha.u,cha.u,cha.y,cha.up,cha.down,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.324e-05/1.335, allocations: 124 kB / 1.373 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/1.335, allocations: 26.59 kB / 1.373 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002634/1.335, allocations: 187.7 kB / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/1.335, allocations: 6.641 kB / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/1.335, allocations: 0 / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/1.335, allocations: 0 / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005202/1.336, allocations: 0.5429 MB / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.336, allocations: 2.906 kB / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.65e-05/1.336, allocations: 21.42 kB / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.336, allocations: 0 / 1.374 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/1.336, allocations: 6.953 kB / 1.374 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.336, allocations: 0 / 1.374 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/1.336, allocations: 3.875 kB / 1.374 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/1.336, allocations: 277.1 kB / 1.374 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/1.336, allocations: 104.3 kB / 1.374 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/1.336, allocations: 6.922 kB / 1.374 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/1.336, allocations: 20.39 kB / 1.374 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/1.336, allocations: 17.05 kB / 1.374 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/1.336, allocations: 3.875 kB / 1.374 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001628/1.336, allocations: 205.3 kB / 1.374 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2e-07/1.336, allocations: 7.812 kB / 1.374 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002914/1.337, allocations: 71.11 kB / 1.374 GB, free: 31.38 MB / 0.8386 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000811/1.338, allocations: 389.4 kB / 1.375 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002416/1.338, allocations: 157.1 kB / 1.375 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1.338, allocations: 0 / 1.375 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.849e-05/1.338, allocations: 64.2 kB / 1.375 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/1.338, allocations: 45.08 kB / 1.375 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004988/1.339, allocations: 308.6 kB / 1.375 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/1.339, allocations: 0.7529 MB / 1.376 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001033/1.339, allocations: 40.22 kB / 1.376 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.115e-05/1.339, allocations: 25.39 kB / 1.376 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.339, allocations: 0 / 1.376 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of Templates: time 0.005742/1.345, allocations: 2.869 MB / 1.379 GB, free: 30.07 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches