Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008791/0.0008791, allocations: 80.8 kB / 20.75 MB, free: 3.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009595/0.0009595, allocations: 161 kB / 24.17 MB, free: 332 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9538/0.9538, allocations: 177.2 MB / 204.6 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.854/1.854, allocations: 377.9 MB / 0.624 GB, free: 8.383 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 0.76 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.377e-05/1.512e-05, allocations: 9.344 kB / 0.76 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001915/0.00193, allocations: 1.852 MB / 0.7618 GB, free: 4.789 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007156/0.002646, allocations: 0.5737 MB / 0.7624 GB, free: 4.215 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.752e-05/0.002713, allocations: 4.5 kB / 0.7624 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.002825, allocations: 30.02 kB / 0.7624 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 5.67e-05/0.002882, allocations: 29.56 kB / 0.7625 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.000143/0.003025, allocations: 69.61 kB / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.003178, allocations: 172.6 kB / 0.7627 GB, free: 3.93 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.941e-05/0.003267, allocations: 38.36 kB / 0.7627 GB, free: 3.891 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.053e-05/0.003358, allocations: 80.73 kB / 0.7628 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.206e-05/0.00341, allocations: 39.83 kB / 0.7628 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.003433, allocations: 13.78 kB / 0.7628 GB, free: 3.762 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.003446, allocations: 8 kB / 0.7629 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.003471, allocations: 27.91 kB / 0.7629 GB, free: 3.727 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.003509, allocations: 39.84 kB / 0.7629 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.003624, allocations: 103.6 kB / 0.763 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003626, allocations: 1.219 kB / 0.763 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.21e-07/0.003626, allocations: 0 / 0.763 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.705e-06/0.003629, allocations: 0 / 0.763 GB, free: 3.586 MB / 0.7136 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.0003631/0.003992, allocations: 373.9 kB / 0.7634 GB, free: 3.199 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.581e-05/0.004018, allocations: 12.03 kB / 0.7634 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.00405, allocations: 20.92 kB / 0.7634 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.0042, allocations: 170.8 kB / 0.7636 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.004211, allocations: 8.375 kB / 0.7636 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.004232, allocations: 17.98 kB / 0.7636 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.004372, allocations: 140.5 kB / 0.7637 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.004379, allocations: 192 / 0.7637 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.004388, allocations: 4.375 kB / 0.7637 GB, free: 2.789 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.004394, allocations: 4.5 kB / 0.7637 GB, free: 2.785 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.1e-05/0.004435, allocations: 38.53 kB / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.004855, allocations: 0.5683 MB / 0.7643 GB, free: 2.152 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.267e-05/0.004898, allocations: 26.52 kB / 0.7644 GB, free: 2.117 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.004916, allocations: 13.39 kB / 0.7644 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.004927, allocations: 5 kB / 0.7644 GB, free: 2.098 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/0.00524, allocations: 103.1 kB / 0.7645 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 9.51e-07/0.005241, allocations: 1.031 kB / 0.7645 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0001292/0.00537, allocations: 86.09 kB / 0.7646 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.00542, allocations: 136.5 kB / 0.7647 GB, free: 1.719 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.718e-05/0.005507, allocations: 182.8 kB / 0.7649 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.005519, allocations: 33.7 kB / 0.7649 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.005562, allocations: 123.8 kB / 0.765 GB, free: 1.367 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.005582, allocations: 35.72 kB / 0.765 GB, free: 1.332 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.00562, allocations: 52.38 kB / 0.7651 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.535e-05/0.005686, allocations: 330.8 kB / 0.7654 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.005703, allocations: 12 kB / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.865e-05/0.005762, allocations: 114.6 kB / 0.7655 GB, free: 0.7695 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.005866, allocations: 162.7 kB / 0.7657 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.005868, allocations: 0 / 0.7657 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001136/0.005982, allocations: 140.7 kB / 0.7658 GB, free: 432 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.005991, allocations: 10.38 kB / 0.7658 GB, free: 424 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.005996, allocations: 4 kB / 0.7658 GB, free: 420 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.006009, allocations: 8 kB / 0.7658 GB, free: 412 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.424e-05/0.006074, allocations: 31.92 kB / 0.7659 GB, free: 380 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.006079, allocations: 4.25 kB / 0.7659 GB, free: 376 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.527e-05/0.006134, allocations: 19.89 kB / 0.7659 GB, free: 356 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.006142, allocations: 17.42 kB / 0.7659 GB, free: 340 kB / 0.7136 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intNoReset.trigger_internal,intDef.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.789e-05/0.0062, allocations: 131.1 kB / 0.766 GB, free: 200 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.006215, allocations: 11.98 kB / 0.766 GB, free: 188 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.006243, allocations: 22.44 kB / 0.7661 GB, free: 164 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.006247, allocations: 7.938 kB / 0.7661 GB, free: 156 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.006248, allocations: 240 / 0.7661 GB, free: 156 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.006253, allocations: 9.141 kB / 0.7661 GB, free: 148 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.006512, allocations: 341.9 kB / 0.7664 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.006513, allocations: 2.375 kB / 0.7664 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.596e-05/0.006559, allocations: 19.92 kB / 0.7664 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.006561, allocations: 0 / 0.7664 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.006571, allocations: 8 kB / 0.7664 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.006572, allocations: 0 / 0.7664 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.006574, allocations: 3.938 kB / 0.7664 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.006709, allocations: 273.3 kB / 0.7667 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.371e-05/0.006723, allocations: 15.84 kB / 0.7667 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.006738, allocations: 13.02 kB / 0.7667 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.453e-05/0.006803, allocations: 4 kB / 0.7667 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.006836, allocations: 20.91 kB / 0.7668 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.006841, allocations: 4 kB / 0.7668 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.146e-05/0.006873, allocations: 53.7 kB / 0.7668 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4e-08/0.006873, allocations: 0.5938 kB / 0.7668 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000172/0.007045, allocations: 31.94 kB / 0.7668 GB, free: 15.32 MB / 0.7292 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,sampleTrigger.y,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.448e-05/0.007109, allocations: 87.7 kB / 0.7669 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 9.21e-05/0.007201, allocations: 74.83 kB / 0.767 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.007204, allocations: 0 / 0.767 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 3.857e-05/0.007243, allocations: 41.67 kB / 0.767 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.007491, allocations: 64.42 kB / 0.7671 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/0.007817, allocations: 329.2 kB / 0.7674 GB, free: 14.7 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.778e-05/0.007855, allocations: 71.98 kB / 0.7675 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.205e-05/0.007897, allocations: 20.84 kB / 0.7675 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.007975, allocations: 83.3 kB / 0.7676 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of SimCode: time 3e-07/0.007975, allocations: 0 / 0.7676 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of Templates: time 0.003331/0.01131, allocations: 2.21 MB / 0.7697 GB, free: 12.44 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.980215894989669]