Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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=5000,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_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001317, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 194.4 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.488/2.488, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.91 kB / 0.8119 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8478/0.849, allocations: 140.4 MB / 0.9489 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002706/0.8518, allocations: 1.872 MB / 0.9507 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.8525, allocations: 0.5321 MB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.712e-05/0.8527, allocations: 2.5 kB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.8528, allocations: 25.05 kB / 0.9513 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.571e-05/0.8529, allocations: 14.39 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.8531, allocations: 65.19 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.8533, allocations: 158 kB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.8535, allocations: 53.45 kB / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.786e-05/0.8535, allocations: 55.61 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.639e-05/0.8536, allocations: 56.11 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.735e-05/0.8537, allocations: 6.531 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.24e-05/0.8537, allocations: 6.656 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.8537, allocations: 23.98 kB / 0.9517 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.941e-05/0.8538, allocations: 60.25 kB / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.8539, allocations: 127.8 kB / 0.9519 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8539, allocations: 1.375 kB / 0.9519 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.293e-06/0.8539, allocations: 0 / 0.9519 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.8539, allocations: 4 kB / 0.9519 GB, free: 6.926 MB / 0.7169 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.0006189/0.8546, allocations: 477.5 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.8546, allocations: 9.812 kB / 0.9524 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.8547, allocations: 22.16 kB / 0.9524 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.8549, allocations: 224.1 kB / 0.9526 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.8549, allocations: 8.531 kB / 0.9526 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.8549, allocations: 12.91 kB / 0.9526 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.8552, allocations: 150.8 kB / 0.9528 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.8552, allocations: 1.156 kB / 0.9528 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.8552, allocations: 1.188 kB / 0.9528 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.8552, allocations: 2.688 kB / 0.9528 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.8554, allocations: 86.45 kB / 0.9528 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007108/0.8562, allocations: 0.7348 MB / 0.9536 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.8563, allocations: 50.72 kB / 0.9536 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.8564, allocations: 35.11 kB / 0.9536 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.8564, allocations: 5.219 kB / 0.9536 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.8567, allocations: 129 kB / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.8567, allocations: 1.219 kB / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004578/0.8572, allocations: 164 kB / 0.9539 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.8572, allocations: 138.9 kB / 0.9541 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.8574, allocations: 204.2 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.8574, allocations: 31.17 kB / 0.9543 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.049e-05/0.8575, allocations: 132.2 kB / 0.9544 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.8575, allocations: 32.83 kB / 0.9544 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/0.8575, allocations: 40.73 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.8576, allocations: 326.8 kB / 0.9548 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.8577, allocations: 41.41 kB / 0.9548 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.8579, allocations: 148.2 kB / 0.955 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.8581, allocations: 201.9 kB / 0.9552 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.8581, allocations: 1.375 kB / 0.9552 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003572/0.8585, allocations: 205.8 kB / 0.9554 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.8585, allocations: 9.891 kB / 0.9554 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.8585, allocations: 4.625 kB / 0.9554 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.8586, allocations: 4.594 kB / 0.9554 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.8587, allocations: 32.08 kB / 0.9554 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.8587, allocations: 4.781 kB / 0.9554 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.8589, allocations: 36.14 kB / 0.9555 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.8589, allocations: 9.469 kB / 0.9555 GB, free: 3.633 MB / 0.7169 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.58e-05/0.859, allocations: 143.5 kB / 0.9556 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.859, allocations: 16 kB / 0.9556 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.859, allocations: 18.66 kB / 0.9556 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.8591, allocations: 6.109 kB / 0.9556 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.8591, allocations: 5.125 kB / 0.9556 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8591, allocations: 6.312 kB / 0.9556 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006027/0.8597, allocations: 0.5133 MB / 0.9561 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.8597, allocations: 1.156 kB / 0.9561 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.8598, allocations: 16.61 kB / 0.9562 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.8598, allocations: 1.406 kB / 0.9562 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.8598, allocations: 6.438 kB / 0.9562 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8598, allocations: 5.344 kB / 0.9562 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.8599, allocations: 5.406 kB / 0.9562 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.8603, allocations: 357.3 kB / 0.9565 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.8603, allocations: 94.33 kB / 0.9566 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.8604, allocations: 6.75 kB / 0.9566 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.8605, allocations: 19.02 kB / 0.9566 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.8606, allocations: 13.02 kB / 0.9567 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.8606, allocations: 12.42 kB / 0.9567 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.518e-05/0.8607, allocations: 146.8 kB / 0.9568 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8607, allocations: 3.938 kB / 0.9568 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003264/0.8611, allocations: 25.31 kB / 0.9568 GB, free: 2.414 MB / 0.7169 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.195e-05/0.8612, allocations: 113.5 kB / 0.9569 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002921/0.8614, allocations: 108.3 kB / 0.957 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8615, allocations: 0 / 0.957 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.8616, allocations: 53.09 kB / 0.9571 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005317/0.8621, allocations: 63.19 kB / 0.9572 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.8627, allocations: 377.7 kB / 0.9575 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.8628, allocations: 0.729 MB / 0.9582 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.962e-05/0.8629, allocations: 15.14 kB / 0.9582 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.13e-05/0.8629, allocations: 17.31 kB / 0.9583 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of SimCode: time 6.82e-07/0.8629, allocations: 0 / 0.9583 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of Templates: time 0.004268/0.8672, allocations: 1.827 MB / 0.96 GB, free: 276 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches