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/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.001318/0.001318, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.00166/0.00166, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 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.902/0.902, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.029/2.029, allocations: 429.5 MB / 0.6733 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.954e-05/3.154e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002866/0.002898, allocations: 1.859 MB / 0.88 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009148/0.003812, allocations: 0.5592 MB / 0.8805 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.779e-05/0.00391, allocations: 9.594 kB / 0.8805 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.004068, allocations: 23.73 kB / 0.8806 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.958e-05/0.004138, allocations: 27.67 kB / 0.8806 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.004358, allocations: 72.38 kB / 0.8807 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.004543, allocations: 168.8 kB / 0.8808 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.004675, allocations: 41.66 kB / 0.8809 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.004783, allocations: 79.8 kB / 0.8809 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.893e-05/0.004842, allocations: 40.52 kB / 0.881 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.004867, allocations: 8 kB / 0.881 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.606e-05/0.004883, allocations: 13.59 kB / 0.881 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.004912, allocations: 27.84 kB / 0.881 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.699e-05/0.004959, allocations: 47.83 kB / 0.8811 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.005107, allocations: 95.58 kB / 0.8812 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.00511, allocations: 1.719 kB / 0.8812 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.303e-06/0.005112, allocations: 0 / 0.8812 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.005116, allocations: 0 / 0.8812 GB, free: 3.258 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.0005593/0.005675, allocations: 0.5214 MB / 0.8817 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.005714, allocations: 12.03 kB / 0.8817 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.00577, allocations: 24.84 kB / 0.8817 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.005974, allocations: 184.2 kB / 0.8819 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.005987, allocations: 8.375 kB / 0.8819 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.006013, allocations: 17.09 kB / 0.8819 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.006213, allocations: 152.2 kB / 0.8821 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.006222, allocations: 192 / 0.8821 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.006236, allocations: 4.375 kB / 0.8821 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.006249, allocations: 7.938 kB / 0.8821 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.276e-05/0.006311, allocations: 39.86 kB / 0.8821 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007237/0.007035, allocations: 0.8896 MB / 0.883 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.39e-05/0.007109, allocations: 39 kB / 0.883 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.007139, allocations: 15.67 kB / 0.883 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.007159, allocations: 4 kB / 0.883 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000127/0.007286, allocations: 115.9 kB / 0.8831 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.007287, allocations: 4 kB / 0.8831 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.000227/0.007514, allocations: 121.6 kB / 0.8833 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.007571, allocations: 136.5 kB / 0.8834 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.007699, allocations: 236.5 kB / 0.8836 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.007711, allocations: 25.7 kB / 0.8836 GB, free: 480 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.00779, allocations: 190.8 kB / 0.8838 GB, free: 284 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.007814, allocations: 35.73 kB / 0.8839 GB, free: 248 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.007862, allocations: 51.25 kB / 0.8839 GB, free: 188 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.007983, allocations: 0.5001 MB / 0.8844 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.008016, allocations: 12.23 kB / 0.8844 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.75e-05/0.008104, allocations: 172.5 kB / 0.8846 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.00824, allocations: 210.4 kB / 0.8848 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.008243, allocations: 0 / 0.8848 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001718/0.008415, allocations: 173.3 kB / 0.8849 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.008429, allocations: 8 kB / 0.8849 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.008439, allocations: 4 kB / 0.8849 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.008453, allocations: 4 kB / 0.885 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.49e-05/0.008538, allocations: 35.92 kB / 0.885 GB, free: 14.92 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.008546, allocations: 4 kB / 0.885 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.237e-05/0.008608, allocations: 19.88 kB / 0.885 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.008618, allocations: 16 kB / 0.885 GB, free: 14.88 MB / 0.8542 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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.193e-05/0.0087, allocations: 171.1 kB / 0.8852 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.008723, allocations: 27.84 kB / 0.8852 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.008754, allocations: 25.44 kB / 0.8852 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.008757, allocations: 4 kB / 0.8852 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.008761, allocations: 0 / 0.8852 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.008765, allocations: 3.938 kB / 0.8852 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003809/0.009146, allocations: 0.5042 MB / 0.8857 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.009147, allocations: 0 / 0.8857 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-05/0.009201, allocations: 19.98 kB / 0.8858 GB, free: 14.08 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.009203, allocations: 0 / 0.8858 GB, free: 14.08 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.00922, allocations: 8 kB / 0.8858 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.009222, allocations: 0 / 0.8858 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.009226, allocations: 11.88 kB / 0.8858 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.009462, allocations: 394.3 kB / 0.8862 GB, free: 13.64 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.754e-05/0.00948, allocations: 15.91 kB / 0.8862 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.009499, allocations: 8 kB / 0.8862 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.048e-05/0.009569, allocations: 7.984 kB / 0.8862 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.009617, allocations: 16.05 kB / 0.8862 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.009625, allocations: 8 kB / 0.8862 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002083/0.009833, allocations: 176.2 kB / 0.8864 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.009833, allocations: 0 / 0.8864 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002134/0.01005, allocations: 27.95 kB / 0.8864 GB, free: 13.39 MB / 0.8542 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 9.415e-05/0.01014, allocations: 107.2 kB / 0.8865 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.01028, allocations: 84.22 kB / 0.8866 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.01029, allocations: 0 / 0.8866 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.01034, allocations: 43.84 kB / 0.8866 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.01069, allocations: 68.95 kB / 0.8867 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000432/0.01112, allocations: 333.4 kB / 0.887 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.437e-05/0.01117, allocations: 75.98 kB / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.948e-05/0.01122, allocations: 21.88 kB / 0.8871 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.01125, allocations: 16.5 kB / 0.8871 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of SimCode: time 7.21e-07/0.01126, allocations: 0 / 0.8871 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of Templates: time 0.003957/0.01521, allocations: 2.262 MB / 0.8893 GB, free: 10.37 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.08370203524828]