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.001852/0.001852, allocations: 84.05 kB / 19.18 MB, free: 2.527 MB / 14.72 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.002137/0.002137, allocations: 165.1 kB / 22.46 MB, free: 5.359 MB / 14.72 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 1.449/1.449, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.974/2.974, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.613e-06/1.613e-06, allocations: 3.938 kB / 1 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.631e-05/2.792e-05, allocations: 9.656 kB / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003102/0.00313, allocations: 1.792 MB / 1.002 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.004295, allocations: 0.5377 MB / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.43e-05/0.00439, allocations: 7.938 kB / 1.002 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.004524, allocations: 27.67 kB / 1.002 GB, free: 4.918 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.379e-05/0.004608, allocations: 31.72 kB / 1.002 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.004814, allocations: 59.92 kB / 1.003 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.005064, allocations: 183.3 kB / 1.003 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.005211, allocations: 33.78 kB / 1.003 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.005341, allocations: 83.8 kB / 1.003 GB, free: 4.531 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.234e-05/0.005423, allocations: 47.81 kB / 1.003 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.005452, allocations: 8 kB / 1.003 GB, free: 4.477 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.369e-05/0.005476, allocations: 12 kB / 1.003 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.005514, allocations: 23.91 kB / 1.003 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.918e-05/0.005583, allocations: 43.84 kB / 1.003 GB, free: 4.398 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.005778, allocations: 135.4 kB / 1.003 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.00578, allocations: 0 / 1.003 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.41e-07/0.005781, allocations: 0 / 1.003 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.005785, allocations: 0 / 1.003 GB, free: 4.266 MB / 0.9512 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.0007716/0.006557, allocations: 427.2 kB / 1.003 GB, free: 3.812 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.006596, allocations: 15.97 kB / 1.004 GB, free: 3.797 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/0.006652, allocations: 20.8 kB / 1.004 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.006972, allocations: 181.9 kB / 1.004 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.006988, allocations: 4.375 kB / 1.004 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.007021, allocations: 16.36 kB / 1.004 GB, free: 3.555 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.007355, allocations: 150.4 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.007369, allocations: 4.188 kB / 1.004 GB, free: 3.383 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.007385, allocations: 4.375 kB / 1.004 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.007395, allocations: 7.938 kB / 1.004 GB, free: 3.371 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/0.007644, allocations: 71.81 kB / 1.004 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.008581, allocations: 0.6531 MB / 1.005 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.008741, allocations: 46.55 kB / 1.005 GB, free: 2.547 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.008861, allocations: 28.84 kB / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.008877, allocations: 0 / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.009128, allocations: 126.7 kB / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.009129, allocations: 0 / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0005131/0.009642, allocations: 161.8 kB / 1.005 GB, free: 2.203 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.009747, allocations: 144.4 kB / 1.005 GB, free: 2.031 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.009942, allocations: 195.2 kB / 1.005 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.009966, allocations: 25.7 kB / 1.005 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.918e-05/0.01007, allocations: 131.9 kB / 1.005 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.01011, allocations: 43.83 kB / 1.005 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.355e-05/0.01018, allocations: 41.7 kB / 1.005 GB, free: 1.578 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.01034, allocations: 326.8 kB / 1.006 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.01047, allocations: 40.03 kB / 1.006 GB, free: 1.211 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.0107, allocations: 142.6 kB / 1.006 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/0.01106, allocations: 202.3 kB / 1.006 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01106, allocations: 3.938 kB / 1.006 GB, free: 0.7656 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004484/0.01151, allocations: 213.5 kB / 1.006 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.01153, allocations: 8 kB / 1.006 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.01154, allocations: 8.484 kB / 1.006 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.01156, allocations: 8 kB / 1.006 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.01169, allocations: 35.92 kB / 1.006 GB, free: 0.4922 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.0117, allocations: 4 kB / 1.006 GB, free: 500 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.01184, allocations: 23.94 kB / 1.006 GB, free: 476 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.01186, allocations: 12 kB / 1.006 GB, free: 464 kB / 0.9512 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 0.0001307/0.01199, allocations: 137.7 kB / 1.007 GB, free: 316 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.416e-05/0.01202, allocations: 23.8 kB / 1.007 GB, free: 292 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.271e-05/0.01207, allocations: 17.47 kB / 1.007 GB, free: 276 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.01207, allocations: 4 kB / 1.007 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.01208, allocations: 4 kB / 1.007 GB, free: 268 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.01208, allocations: 3.984 kB / 1.007 GB, free: 264 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008371/0.01292, allocations: 445.2 kB / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01292, allocations: 0 / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.01305, allocations: 19.98 kB / 1.007 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01305, allocations: 4 kB / 1.007 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.01306, allocations: 3.984 kB / 1.007 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.01307, allocations: 7.938 kB / 1.007 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01307, allocations: 4 kB / 1.007 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005662/0.01364, allocations: 364.1 kB / 1.007 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.01366, allocations: 15.84 kB / 1.007 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.01369, allocations: 4 kB / 1.007 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.01387, allocations: 12.03 kB / 1.007 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.06e-05/0.01392, allocations: 15.97 kB / 1.008 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.01393, allocations: 8 kB / 1.008 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001145/0.01405, allocations: 127.2 kB / 1.008 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.01405, allocations: 3.938 kB / 1.008 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000341/0.01439, allocations: 31.98 kB / 1.008 GB, free: 15.15 MB / 0.9669 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.000124/0.01451, allocations: 105.3 kB / 1.008 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003584/0.01487, allocations: 112.6 kB / 1.008 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01487, allocations: 0 / 1.008 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.01504, allocations: 47.91 kB / 1.008 GB, free: 14.89 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.01561, allocations: 66.42 kB / 1.008 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006523/0.01626, allocations: 328.6 kB / 1.008 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.01639, allocations: 108.5 kB / 1.008 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.003e-05/0.01646, allocations: 21.47 kB / 1.008 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.008e-05/0.01651, allocations: 16.5 kB / 1.008 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/0.01651, allocations: 0 / 1.008 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of Templates: time 0.005906/0.02241, allocations: 2.12 MB / 1.011 GB, free: 12.23 MB / 0.9669 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=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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.038999255746603]