Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001114/0.001114, allocations: 187.3 kB / 498.1 MB, free: 5.684 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.671/1.671, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.0009863/0.0009863, allocations: 106.7 kB / 0.9346 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003926, allocations: 14.8 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3123, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1883/0.5007, allocations: 149.9 MB / 1.369 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.501, allocations: 71.91 kB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009292/0.5103, allocations: 3.294 MB / 1.373 GB, free: 8.809 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5103, allocations: 4 kB / 1.373 GB, free: 8.805 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.5103, allocations: 0 / 1.373 GB, free: 8.805 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005937/0.5109, allocations: 445.1 kB / 1.373 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.511, allocations: 12.02 kB / 1.373 GB, free: 8.305 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.965e-05/0.511, allocations: 15.84 kB / 1.373 GB, free: 8.289 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.5112, allocations: 183.5 kB / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.5112, allocations: 8 kB / 1.373 GB, free: 8.062 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.5112, allocations: 8 kB / 1.373 GB, free: 8.055 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.5115, allocations: 105.6 kB / 1.373 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.5115, allocations: 0 / 1.373 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.5115, allocations: 3.984 kB / 1.373 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.5115, allocations: 7.984 kB / 1.373 GB, free: 7.934 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.5117, allocations: 63.95 kB / 1.373 GB, free: 7.871 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008669/0.5126, allocations: 440.3 kB / 1.374 GB, free: 7.391 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.5128, allocations: 58.39 kB / 1.374 GB, free: 7.324 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.5128, allocations: 3.984 kB / 1.374 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.513, allocations: 103.5 kB / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.5131, allocations: 0 / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0004996/0.5136, allocations: 161.5 kB / 1.374 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.5136, allocations: 55.41 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.5137, allocations: 142.4 kB / 1.374 GB, free: 6.828 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.5138, allocations: 29.7 kB / 1.374 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.57e-05/0.5139, allocations: 108.2 kB / 1.374 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.5139, allocations: 27.69 kB / 1.374 GB, free: 6.652 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.5139, allocations: 4 kB / 1.374 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.514, allocations: 322.8 kB / 1.375 GB, free: 6.324 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.5142, allocations: 60.81 kB / 1.375 GB, free: 6.266 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.5144, allocations: 143.1 kB / 1.375 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.5146, allocations: 101.6 kB / 1.375 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5146, allocations: 0 / 1.375 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004801/0.5151, allocations: 267.1 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/0.5152, allocations: 37.7 kB / 1.375 GB, free: 5.668 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.5152, allocations: 4.375 kB / 1.375 GB, free: 5.664 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.5152, allocations: 4 kB / 1.375 GB, free: 5.66 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.5153, allocations: 31.97 kB / 1.375 GB, free: 5.629 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.5153, allocations: 7.938 kB / 1.375 GB, free: 5.621 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.5156, allocations: 55.91 kB / 1.375 GB, free: 5.566 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.5156, allocations: 15.98 kB / 1.375 GB, free: 5.551 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001077/0.5157, allocations: 128.5 kB / 1.376 GB, free: 5.418 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.5158, allocations: 15.86 kB / 1.376 GB, free: 5.402 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.047e-05/0.5158, allocations: 16.7 kB / 1.376 GB, free: 5.383 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.5158, allocations: 0 / 1.376 GB, free: 5.383 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5158, allocations: 3.938 kB / 1.376 GB, free: 5.379 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5158, allocations: 0 / 1.376 GB, free: 5.379 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005758/0.5164, allocations: 426.4 kB / 1.376 GB, free: 4.906 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5164, allocations: 0 / 1.376 GB, free: 4.906 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.5165, allocations: 15.98 kB / 1.376 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5165, allocations: 3.938 kB / 1.376 GB, free: 4.887 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.5166, allocations: 4 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5166, allocations: 0 / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.5166, allocations: 0 / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.517, allocations: 275.2 kB / 1.376 GB, free: 4.598 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.5171, allocations: 88.97 kB / 1.376 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.5171, allocations: 8.031 kB / 1.376 GB, free: 4.484 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.5172, allocations: 12 kB / 1.376 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.5173, allocations: 7.984 kB / 1.376 GB, free: 4.465 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.5173, allocations: 7.984 kB / 1.376 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.721e-05/0.5174, allocations: 110.7 kB / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5174, allocations: 0 / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002973/0.5177, allocations: 43.98 kB / 1.377 GB, free: 4.309 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001902/0.5179, allocations: 130.9 kB / 1.377 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003856/0.5183, allocations: 204 kB / 1.377 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5183, allocations: 0 / 1.377 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.5184, allocations: 55.91 kB / 1.377 GB, free: 3.906 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.5187, allocations: 21.47 kB / 1.377 GB, free: 3.887 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/0.5192, allocations: 293.7 kB / 1.377 GB, free: 3.57 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.5194, allocations: 0.7082 MB / 1.378 GB, free: 2.836 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.638e-05/0.5195, allocations: 16.55 kB / 1.378 GB, free: 2.816 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.786e-05/0.5195, allocations: 11.44 kB / 1.378 GB, free: 2.809 MB / 0.8698 GB Notification: Performance of SimCode: time 2.21e-07/0.5195, allocations: 0 / 1.378 GB, free: 2.809 MB / 0.8698 GB Notification: Performance of Templates: time 0.003951/0.5235, allocations: 1.571 MB / 1.38 GB, free: 1.254 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches