Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.214/2.214, allocations: 393.5 MB / 408.4 MB, free: 10.95 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.001043/0.001043, allocations: 180 kB / 0.4902 GB, free: 2.242 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.646/1.646, allocations: 223.2 MB / 0.7992 GB, free: 15.68 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.0009404/0.0009406, allocations: 99.33 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003555, allocations: 9.812 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3064, allocations: 143 MB / 1.229 GB, free: 85.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2059/0.5124, allocations: 152 MB / 1.378 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.5127, allocations: 71.97 kB / 1.378 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.009672/0.5224, allocations: 3.538 MB / 1.381 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.665e-06/0.5224, allocations: 0 / 1.381 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.227e-05/0.5225, allocations: 11.94 kB / 1.381 GB, free: 9.695 MB / 0.8855 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.0007569/0.5232, allocations: 460.1 kB / 1.382 GB, free: 9.199 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.5233, allocations: 8.562 kB / 1.382 GB, free: 9.191 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.5234, allocations: 19.81 kB / 1.382 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.5237, allocations: 227.4 kB / 1.382 GB, free: 8.91 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.5237, allocations: 16 kB / 1.382 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.5238, allocations: 12.66 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.5241, allocations: 153.7 kB / 1.382 GB, free: 8.711 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.5241, allocations: 4 kB / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.5242, allocations: 4 kB / 1.382 GB, free: 8.703 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.5242, allocations: 4 kB / 1.382 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.5244, allocations: 79.84 kB / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.5256, allocations: 0.7667 MB / 1.383 GB, free: 7.789 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.5258, allocations: 50.55 kB / 1.383 GB, free: 7.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.5258, allocations: 0 / 1.383 GB, free: 7.73 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003113/0.5262, allocations: 138.7 kB / 1.383 GB, free: 7.57 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.5262, allocations: 0 / 1.383 GB, free: 7.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0005458/0.5267, allocations: 173.5 kB / 1.383 GB, free: 7.395 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.5268, allocations: 144.4 kB / 1.383 GB, free: 7.223 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.527, allocations: 178.9 kB / 1.384 GB, free: 7.039 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.5271, allocations: 29.77 kB / 1.384 GB, free: 7.004 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.069e-05/0.5271, allocations: 127.9 kB / 1.384 GB, free: 6.875 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.841e-05/0.5272, allocations: 39.45 kB / 1.384 GB, free: 6.836 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-06/0.5272, allocations: 4 kB / 1.384 GB, free: 6.832 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.5273, allocations: 330.8 kB / 1.384 GB, free: 6.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.5275, allocations: 40.34 kB / 1.384 GB, free: 6.457 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.5277, allocations: 147.3 kB / 1.384 GB, free: 6.262 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.5278, allocations: 67.84 kB / 1.384 GB, free: 6.195 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.5278, allocations: 0 / 1.384 GB, free: 6.195 MB / 0.8855 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004355/0.5283, allocations: 213.1 kB / 1.384 GB, free: 5.98 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.5283, allocations: 8.938 kB / 1.384 GB, free: 5.973 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.5283, allocations: 0.5 kB / 1.384 GB, free: 5.973 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.5284, allocations: 12 kB / 1.384 GB, free: 5.961 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.5285, allocations: 43.91 kB / 1.385 GB, free: 5.918 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.5285, allocations: 4 kB / 1.385 GB, free: 5.914 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.5287, allocations: 31.78 kB / 1.385 GB, free: 5.883 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.5287, allocations: 12 kB / 1.385 GB, free: 5.871 MB / 0.8855 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 () * Number of clocked 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 0.0001396/0.5289, allocations: 133.8 kB / 1.385 GB, free: 5.73 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.5289, allocations: 23.8 kB / 1.385 GB, free: 5.707 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/0.529, allocations: 21.59 kB / 1.385 GB, free: 5.691 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.529, allocations: 0 / 1.385 GB, free: 5.691 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.529, allocations: 8 kB / 1.385 GB, free: 5.684 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.529, allocations: 0 / 1.385 GB, free: 5.684 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009052/0.5299, allocations: 0.5365 MB / 1.385 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.53, allocations: 0 / 1.385 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.5301, allocations: 19.98 kB / 1.385 GB, free: 5.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.5301, allocations: 4 kB / 1.385 GB, free: 5.066 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.5301, allocations: 7.984 kB / 1.385 GB, free: 5.059 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.5302, allocations: 4 kB / 1.385 GB, free: 5.055 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.5302, allocations: 3.953 kB / 1.385 GB, free: 5.051 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006115/0.5308, allocations: 407.4 kB / 1.386 GB, free: 4.613 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-05/0.5309, allocations: 88.92 kB / 1.386 GB, free: 4.508 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.5309, allocations: 12 kB / 1.386 GB, free: 4.496 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.5311, allocations: 16.03 kB / 1.386 GB, free: 4.48 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.5312, allocations: 15.91 kB / 1.386 GB, free: 4.465 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.5312, allocations: 8 kB / 1.386 GB, free: 4.457 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001244/0.5313, allocations: 136.6 kB / 1.386 GB, free: 4.324 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.375e-06/0.5313, allocations: 0 / 1.386 GB, free: 4.324 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003445/0.5317, allocations: 31.94 kB / 1.386 GB, free: 4.293 MB / 0.8855 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 () * Number of clocked 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.0001737/0.5319, allocations: 112.6 kB / 1.386 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003626/0.5322, allocations: 124.3 kB / 1.386 GB, free: 4.055 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5323, allocations: 4 kB / 1.386 GB, free: 4.051 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.5324, allocations: 52 kB / 1.386 GB, free: 4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.5329, allocations: 61.47 kB / 1.386 GB, free: 3.941 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006884/0.5336, allocations: 390.3 kB / 1.387 GB, free: 3.527 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.534, allocations: 0.7322 MB / 1.387 GB, free: 2.77 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000103/0.5341, allocations: 25.73 kB / 1.387 GB, free: 2.742 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.5341, allocations: 15.44 kB / 1.387 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of SimCode: time 5.11e-07/0.5341, allocations: 0 / 1.387 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of Templates: time 0.005205/0.5394, allocations: 1.742 MB / 1.389 GB, free: 1.004 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches