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.001257/0.001257, allocations: 73.88 kB / 20.66 MB, free: 3.84 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.001379/0.001379, allocations: 173 kB / 24.06 MB, free: 452 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.9705/0.9705, allocations: 177.1 MB / 204.5 MB, free: 5.473 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.114/2.114, allocations: 429.5 MB / 0.6743 GB, free: 3.941 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 1.713e-06/1.713e-06, allocations: 0 / 0.8794 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.685e-05, allocations: 3.406 kB / 0.8794 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002363/0.00239, allocations: 1.85 MB / 0.8812 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008607/0.003251, allocations: 0.5542 MB / 0.8817 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.003352, allocations: 13 kB / 0.8818 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.003488, allocations: 23.73 kB / 0.8818 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.541e-05/0.003553, allocations: 32.73 kB / 0.8818 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.003747, allocations: 66.09 kB / 0.8819 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.003925, allocations: 175.4 kB / 0.882 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.004039, allocations: 33.72 kB / 0.8821 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.00414, allocations: 83.73 kB / 0.8822 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.793e-05/0.004198, allocations: 43.81 kB / 0.8822 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.004222, allocations: 12 kB / 0.8822 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.331e-05/0.004235, allocations: 10.34 kB / 0.8822 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.004264, allocations: 31.91 kB / 0.8822 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.902e-05/0.004303, allocations: 31.86 kB / 0.8823 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.004444, allocations: 103.6 kB / 0.8824 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004446, allocations: 0 / 0.8824 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004447, allocations: 0 / 0.8824 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.004452, allocations: 0.7188 kB / 0.8824 GB, free: 2.992 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.0004955/0.004947, allocations: 0.5279 MB / 0.8829 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.004979, allocations: 8.031 kB / 0.8829 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.005024, allocations: 28.84 kB / 0.8829 GB, free: 2.387 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.005201, allocations: 182.1 kB / 0.8831 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.005213, allocations: 8.375 kB / 0.8831 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.005237, allocations: 16.31 kB / 0.8831 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.005405, allocations: 146.9 kB / 0.8833 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.005414, allocations: 192 / 0.8833 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.005424, allocations: 4.375 kB / 0.8833 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.005432, allocations: 7.938 kB / 0.8833 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.501e-05/0.005477, allocations: 37.06 kB / 0.8833 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007531/0.00623, allocations: 0.8628 MB / 0.8842 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.19e-05/0.006292, allocations: 31.05 kB / 0.8842 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.164e-05/0.006313, allocations: 23.83 kB / 0.8842 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.006327, allocations: 0 / 0.8842 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001148/0.006442, allocations: 115.9 kB / 0.8843 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.006443, allocations: 4 kB / 0.8843 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0001919/0.006635, allocations: 109.5 kB / 0.8844 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.006693, allocations: 136.5 kB / 0.8846 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.00681, allocations: 236.4 kB / 0.8848 GB, free: 296 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.006825, allocations: 29.7 kB / 0.8848 GB, free: 260 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.006903, allocations: 190.6 kB / 0.885 GB, free: 64 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.006925, allocations: 31.73 kB / 0.885 GB, free: 32 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-05/0.006986, allocations: 51.3 kB / 0.8851 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.007097, allocations: 0.5001 MB / 0.8856 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.36e-05/0.00712, allocations: 8.25 kB / 0.8856 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.383e-05/0.007204, allocations: 174.6 kB / 0.8857 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.007338, allocations: 198.6 kB / 0.8859 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.007341, allocations: 4 kB / 0.8859 GB, free: 14.94 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001645/0.007505, allocations: 169.4 kB / 0.8861 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.007518, allocations: 11.88 kB / 0.8861 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.007525, allocations: 4.25 kB / 0.8861 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.007536, allocations: 8 kB / 0.8861 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.958e-05/0.007615, allocations: 35.92 kB / 0.8861 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.007621, allocations: 7.938 kB / 0.8862 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.535e-05/0.007686, allocations: 23.88 kB / 0.8862 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.007695, allocations: 8.312 kB / 0.8862 GB, free: 14.67 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,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 8.632e-05/0.007781, allocations: 174.5 kB / 0.8864 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.007807, allocations: 23.84 kB / 0.8864 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.007837, allocations: 25.45 kB / 0.8864 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.00784, allocations: 0 / 0.8864 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.007844, allocations: 4 kB / 0.8864 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.007848, allocations: 0 / 0.8864 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003708/0.008219, allocations: 481 kB / 0.8869 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.008222, allocations: 7.938 kB / 0.8869 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.008278, allocations: 15.92 kB / 0.8869 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.008281, allocations: 8 kB / 0.8869 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.008291, allocations: 0 / 0.8869 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.008294, allocations: 4 kB / 0.8869 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.008296, allocations: 0 / 0.8869 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002169/0.008512, allocations: 394.2 kB / 0.8873 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.02e-05/0.008533, allocations: 19.84 kB / 0.8873 GB, free: 13.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.008547, allocations: 0 / 0.8873 GB, free: 13.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.73e-05/0.008625, allocations: 15.98 kB / 0.8873 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.008662, allocations: 11.98 kB / 0.8873 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.00867, allocations: 4 kB / 0.8873 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.057e-05/0.00873, allocations: 164.2 kB / 0.8875 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.00873, allocations: 0 / 0.8875 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002287/0.008959, allocations: 31.95 kB / 0.8875 GB, free: 13.25 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.658e-05/0.009056, allocations: 99.25 kB / 0.8876 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001251/0.009181, allocations: 81.38 kB / 0.8877 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.009183, allocations: 0 / 0.8877 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.339e-05/0.009226, allocations: 39.8 kB / 0.8877 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.009591, allocations: 82.72 kB / 0.8878 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.01001, allocations: 328.5 kB / 0.8881 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.608e-05/0.01005, allocations: 71.98 kB / 0.8882 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.7e-05/0.01011, allocations: 25.59 kB / 0.8882 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.01021, allocations: 106.2 kB / 0.8883 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of SimCode: time 1.002e-06/0.01021, allocations: 0 / 0.8883 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of Templates: time 0.004092/0.01431, allocations: 2.366 MB / 0.8906 GB, free: 10.04 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.3866324527189136]