Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.041/2.041, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.0009734/0.0009734, allocations: 184.8 kB / 487.4 MB, free: 5.047 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.321/1.321, allocations: 221.5 MB / 0.7824 GB, free: 1.035 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.0009484/0.0009484, allocations: 103.8 kB / 0.9219 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.728e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2297, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8031/1.033, allocations: 150.5 MB / 1.353 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/1.033, allocations: 75.38 kB / 1.353 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009215/1.042, allocations: 3.501 MB / 1.356 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.834e-06/1.042, allocations: 0 / 1.356 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.587e-05/1.042, allocations: 9.312 kB / 1.356 GB, free: 33.9 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004881/1.043, allocations: 443.1 kB / 1.357 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/1.043, allocations: 11.66 kB / 1.357 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/1.043, allocations: 16.69 kB / 1.357 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/1.043, allocations: 234.3 kB / 1.357 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/1.043, allocations: 3.844 kB / 1.357 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/1.043, allocations: 7.844 kB / 1.357 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.46e-05/1.043, allocations: 44.19 kB / 1.357 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/1.044, allocations: 113 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/1.044, allocations: 3.844 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.044, allocations: 1.219 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/1.044, allocations: 3.844 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008047/1.044, allocations: 0.7201 MB / 1.358 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.546e-05/1.045, allocations: 32.45 kB / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/1.045, allocations: 20.36 kB / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/1.045, allocations: 0 / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001347/1.045, allocations: 117 kB / 1.358 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/1.045, allocations: 0 / 1.358 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0001951/1.045, allocations: 95.81 kB / 1.358 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/1.045, allocations: 132.4 kB / 1.358 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/1.045, allocations: 157.5 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/1.045, allocations: 29.77 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/1.045, allocations: 134.6 kB / 1.359 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/1.045, allocations: 34.14 kB / 1.359 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-06/1.045, allocations: 0 / 1.359 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.045, allocations: 328.5 kB / 1.359 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.184e-05/1.045, allocations: 27.66 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.252e-05/1.045, allocations: 126.5 kB / 1.359 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.408e-05/1.046, allocations: 36.91 kB / 1.359 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.046, allocations: 10.5 kB / 1.359 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001797/1.046, allocations: 152.3 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/1.046, allocations: 7.688 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/1.046, allocations: 3.969 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/1.046, allocations: 5.031 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/1.046, allocations: 40.5 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/1.046, allocations: 11.69 kB / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/1.046, allocations: 20.75 kB / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/1.046, allocations: 11.69 kB / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.391e-05/1.046, allocations: 120.5 kB / 1.36 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/1.046, allocations: 21.84 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/1.046, allocations: 28.5 kB / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/1.046, allocations: 3.844 kB / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.046, allocations: 0 / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.046, allocations: 0 / 1.36 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004645/1.047, allocations: 469.5 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/1.047, allocations: 0 / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/1.047, allocations: 21.91 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/1.047, allocations: 0 / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/1.047, allocations: 10.03 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/1.047, allocations: 3.938 kB / 1.36 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.047, allocations: 0 / 1.36 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002401/1.047, allocations: 346.6 kB / 1.36 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/1.047, allocations: 92.73 kB / 1.36 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/1.047, allocations: 3.844 kB / 1.36 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/1.047, allocations: 21.53 kB / 1.36 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/1.047, allocations: 18.28 kB / 1.36 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/1.047, allocations: 10.91 kB / 1.361 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.305e-05/1.048, allocations: 125.5 kB / 1.361 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.048, allocations: 0 / 1.361 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003197/1.048, allocations: 23.34 kB / 1.361 GB, free: 30.52 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0001263/1.048, allocations: 105.5 kB / 1.361 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001395/1.048, allocations: 74.83 kB / 1.361 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.048, allocations: 3.938 kB / 1.361 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.701e-05/1.048, allocations: 31.69 kB / 1.361 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/1.049, allocations: 53.52 kB / 1.361 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/1.049, allocations: 260.4 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/1.049, allocations: 0.7262 MB / 1.362 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.717e-05/1.049, allocations: 20.72 kB / 1.362 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/1.049, allocations: 19.12 kB / 1.362 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.049, allocations: 0 / 1.362 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of Templates: time 0.003672/1.053, allocations: 1.602 MB / 1.363 GB, free: 29.41 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches