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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 113.4 kB / 17.08 MB, free: 5.789 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 191.7 kB / 20.03 MB, free: 2.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 245.7 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.922/2.922, allocations: 489.2 MB / 0.7687 GB, free: 3.965 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001958/0.001959, allocations: 79.88 kB / 1.103 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.013, allocations: 163.8 MB / 1.263 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002992/1.016, allocations: 1.82 MB / 1.264 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009675/1.017, allocations: 0.5392 MB / 1.265 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/1.017, allocations: 2.781 kB / 1.265 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001492/1.017, allocations: 21.89 kB / 1.265 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.206e-05/1.018, allocations: 33.94 kB / 1.265 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/1.018, allocations: 64.47 kB / 1.265 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002507/1.018, allocations: 174.2 kB / 1.265 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/1.018, allocations: 56.11 kB / 1.265 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/1.018, allocations: 49.52 kB / 1.265 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.75e-05/1.018, allocations: 57.28 kB / 1.265 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/1.018, allocations: 13.47 kB / 1.265 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.889e-05/1.018, allocations: 10.69 kB / 1.265 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.779e-05/1.018, allocations: 25.62 kB / 1.265 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/1.019, allocations: 68.45 kB / 1.265 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002174/1.019, allocations: 140.9 kB / 1.266 GB, free: 6 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/1.019, allocations: 5.516 kB / 1.266 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.633e-06/1.019, allocations: 0 / 1.266 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.332e-06/1.019, allocations: 0.9688 kB / 1.266 GB, free: 5.996 MB / 0.9981 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.0006692/1.019, allocations: 477 kB / 1.266 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/1.02, allocations: 8.781 kB / 1.266 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.672e-05/1.02, allocations: 23.41 kB / 1.266 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/1.02, allocations: 236.8 kB / 1.266 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/1.02, allocations: 8.969 kB / 1.266 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/1.02, allocations: 13.3 kB / 1.266 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/1.02, allocations: 148.5 kB / 1.266 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/1.02, allocations: 4.688 kB / 1.266 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/1.02, allocations: 6.375 kB / 1.266 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/1.02, allocations: 2.688 kB / 1.266 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/1.021, allocations: 69.45 kB / 1.267 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008234/1.021, allocations: 0.7375 MB / 1.267 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/1.022, allocations: 56.7 kB / 1.267 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/1.022, allocations: 30.17 kB / 1.267 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/1.022, allocations: 4.875 kB / 1.267 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/1.022, allocations: 127.6 kB / 1.267 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.512e-06/1.022, allocations: 0 / 1.267 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0005261/1.023, allocations: 168.9 kB / 1.268 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/1.023, allocations: 136.1 kB / 1.268 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/1.023, allocations: 196.2 kB / 1.268 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/1.023, allocations: 27.23 kB / 1.268 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/1.023, allocations: 130.3 kB / 1.268 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.492e-05/1.023, allocations: 43.75 kB / 1.268 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.038e-05/1.023, allocations: 39.31 kB / 1.268 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.308e-05/1.023, allocations: 333.7 kB / 1.268 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/1.023, allocations: 41.67 kB / 1.269 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/1.023, allocations: 153.4 kB / 1.269 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/1.024, allocations: 213.8 kB / 1.269 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/1.024, allocations: 1.094 kB / 1.269 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000418/1.024, allocations: 199.9 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.024, allocations: 6.5 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.024, allocations: 4.188 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/1.024, allocations: 6.703 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/1.024, allocations: 40.83 kB / 1.269 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/1.024, allocations: 10.11 kB / 1.269 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/1.024, allocations: 24.83 kB / 1.269 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/1.025, allocations: 12.34 kB / 1.269 GB, free: 2.977 MB / 0.9981 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.77e-05/1.025, allocations: 136.1 kB / 1.269 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/1.025, allocations: 21.31 kB / 1.269 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/1.025, allocations: 21.94 kB / 1.269 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/1.025, allocations: 2.219 kB / 1.269 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.025, allocations: 5.406 kB / 1.269 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/1.025, allocations: 1.609 kB / 1.269 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/1.025, allocations: 0.5099 MB / 1.27 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.025, allocations: 1.859 kB / 1.27 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/1.026, allocations: 23.78 kB / 1.27 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/1.026, allocations: 6.125 kB / 1.27 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/1.026, allocations: 2.172 kB / 1.27 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.026, allocations: 1.531 kB / 1.27 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.026, allocations: 6.297 kB / 1.27 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004816/1.026, allocations: 356.5 kB / 1.27 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.003e-05/1.026, allocations: 99.83 kB / 1.27 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/1.026, allocations: 3.828 kB / 1.27 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/1.026, allocations: 11.23 kB / 1.27 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/1.026, allocations: 18.72 kB / 1.27 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/1.026, allocations: 4.562 kB / 1.27 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001183/1.027, allocations: 149.4 kB / 1.27 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.027, allocations: 4 kB / 1.27 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003332/1.027, allocations: 31.42 kB / 1.271 GB, free: 1.867 MB / 0.9981 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 0.0001203/1.027, allocations: 106.8 kB / 1.271 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003481/1.027, allocations: 115.5 kB / 1.271 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.027, allocations: 5 kB / 1.271 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001533/1.028, allocations: 53.75 kB / 1.271 GB, free: 1.727 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/1.028, allocations: 77.03 kB / 1.271 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/1.029, allocations: 378.2 kB / 1.271 GB, free: 1.402 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001738/1.029, allocations: 0.7245 MB / 1.272 GB, free: 0.6992 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/1.029, allocations: 17.56 kB / 1.272 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of SimCode: time 2.01e-07/1.029, allocations: 0.8125 kB / 1.272 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of Templates: time 0.004759/1.034, allocations: 2.139 MB / 1.274 GB, free: 496 kB / 0.9981 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.287244091043249]