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.193/2.193, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001206/0.001206, allocations: 188.7 kB / 487.4 MB, free: 5.027 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.701/1.701, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009975/0.0009977, allocations: 107.4 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.729e-05/1.731e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2391, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7803/1.02, allocations: 149.2 MB / 1.352 GB, free: 18.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/1.02, allocations: 70.02 kB / 1.352 GB, free: 18.21 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009994/1.03, allocations: 3.265 MB / 1.355 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.283e-06/1.03, allocations: 0 / 1.355 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.027e-05/1.03, allocations: 3.844 kB / 1.355 GB, free: 33.74 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005908/1.03, allocations: 427.1 kB / 1.355 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/1.03, allocations: 11.34 kB / 1.355 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.841e-05/1.031, allocations: 16.05 kB / 1.355 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/1.031, allocations: 184.5 kB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/1.031, allocations: 0.9844 kB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/1.031, allocations: 15.38 kB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.899e-05/1.031, allocations: 27.7 kB / 1.356 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/1.031, allocations: 73.36 kB / 1.356 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/1.031, allocations: 4 kB / 1.356 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/1.031, allocations: 0.5625 kB / 1.356 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/1.031, allocations: 0 / 1.356 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00083/1.032, allocations: 396.6 kB / 1.356 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.378e-05/1.032, allocations: 33.14 kB / 1.356 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.028e-05/1.032, allocations: 16.08 kB / 1.356 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/1.032, allocations: 3.844 kB / 1.356 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/1.032, allocations: 93.91 kB / 1.356 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/1.032, allocations: 3.781 kB / 1.356 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.000187/1.032, allocations: 83.98 kB / 1.356 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/1.032, allocations: 55.95 kB / 1.356 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/1.032, allocations: 125.3 kB / 1.356 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/1.033, allocations: 30.14 kB / 1.356 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/1.033, allocations: 107.5 kB / 1.357 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/1.033, allocations: 23.33 kB / 1.357 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/1.033, allocations: 3.844 kB / 1.357 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000112/1.033, allocations: 325.7 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.556e-05/1.033, allocations: 37.02 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.696e-05/1.033, allocations: 114 kB / 1.357 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/1.033, allocations: 69.39 kB / 1.357 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/1.033, allocations: 0 / 1.357 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004341/1.034, allocations: 201.2 kB / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/1.034, allocations: 37.08 kB / 1.357 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/1.034, allocations: 3.844 kB / 1.357 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/1.034, allocations: 3.938 kB / 1.357 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/1.034, allocations: 36.47 kB / 1.357 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/1.034, allocations: 5.109 kB / 1.357 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/1.034, allocations: 49.02 kB / 1.357 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/1.034, allocations: 16.97 kB / 1.357 GB, free: 31.88 MB / 0.8386 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 () * 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 8.796e-05/1.034, allocations: 113.3 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/1.034, allocations: 15.38 kB / 1.358 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/1.034, allocations: 13.27 kB / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/1.034, allocations: 3.938 kB / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.034, allocations: 0 / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.034, allocations: 1.125 kB / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/1.035, allocations: 354.9 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.035, allocations: 4 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/1.035, allocations: 27.5 kB / 1.358 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.035, allocations: 0 / 1.358 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/1.035, allocations: 0.7969 kB / 1.358 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.035, allocations: 0 / 1.358 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.035, allocations: 0 / 1.358 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000212/1.035, allocations: 220.5 kB / 1.358 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/1.035, allocations: 93.41 kB / 1.358 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/1.035, allocations: 4.75 kB / 1.358 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.792e-05/1.035, allocations: 10.75 kB / 1.358 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/1.035, allocations: 7.484 kB / 1.358 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/1.035, allocations: 1.547 kB / 1.358 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.089e-05/1.035, allocations: 102.5 kB / 1.358 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.035, allocations: 0 / 1.358 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000274/1.036, allocations: 31.8 kB / 1.358 GB, free: 31.14 MB / 0.8386 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 () * 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.0001784/1.036, allocations: 122.1 kB / 1.359 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002158/1.036, allocations: 157.2 kB / 1.359 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/1.036, allocations: 3.938 kB / 1.359 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.956e-05/1.036, allocations: 27.83 kB / 1.359 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/1.036, allocations: 14.86 kB / 1.359 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/1.037, allocations: 193.1 kB / 1.359 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/1.037, allocations: 0.707 MB / 1.36 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.821e-05/1.037, allocations: 10.64 kB / 1.36 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/1.037, allocations: 15.39 kB / 1.36 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.037, allocations: 0 / 1.36 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.003614/1.041, allocations: 1.432 MB / 1.361 GB, free: 30.01 MB / 0.8386 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