Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008163/0.0008163, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008337/0.0008337, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.862/0.862, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.599/1.599, allocations: 359 MB / 0.6044 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.9517 GB, free: 2.996 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.705e-05/1.852e-05, allocations: 2.281 kB / 0.9517 GB, free: 2.992 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002086/0.002104, allocations: 1.779 MB / 0.9535 GB, free: 1.195 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000762/0.002866, allocations: 0.557 MB / 0.954 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.35e-05/0.00295, allocations: 3.938 kB / 0.954 GB, free: 0.6289 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.003059, allocations: 27.67 kB / 0.954 GB, free: 0.6016 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.526e-05/0.003114, allocations: 31.72 kB / 0.9541 GB, free: 0.5703 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.003285, allocations: 67.8 kB / 0.9541 GB, free: 0.5039 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.003448, allocations: 179.4 kB / 0.9543 GB, free: 336 kB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.003563, allocations: 37.77 kB / 0.9543 GB, free: 296 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.412e-05/0.003647, allocations: 75.8 kB / 0.9544 GB, free: 220 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.129e-05/0.003698, allocations: 35.89 kB / 0.9545 GB, free: 184 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.003723, allocations: 12 kB / 0.9545 GB, free: 172 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 1.19e-05/0.003735, allocations: 8 kB / 0.9545 GB, free: 164 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 3.069e-05/0.003766, allocations: 35.83 kB / 0.9545 GB, free: 128 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.896e-05/0.003804, allocations: 39.84 kB / 0.9545 GB, free: 88 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.003966, allocations: 139.6 kB / 0.9547 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003967, allocations: 0 / 0.9547 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.353e-06/0.003969, allocations: 0 / 0.9547 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.003973, allocations: 4 kB / 0.9547 GB, free: 15.94 MB / 0.9167 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.0004962/0.004469, allocations: 431.1 kB / 0.9551 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.004501, allocations: 8.031 kB / 0.9551 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.004538, allocations: 20.84 kB / 0.9551 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.004742, allocations: 169.4 kB / 0.9553 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.004753, allocations: 12.38 kB / 0.9553 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.004777, allocations: 20.33 kB / 0.9553 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.005041, allocations: 149 kB / 0.9555 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.005054, allocations: 192 / 0.9555 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.005071, allocations: 4.375 kB / 0.9555 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.00508, allocations: 7.938 kB / 0.9555 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.005223, allocations: 71.88 kB / 0.9555 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.005817, allocations: 0.6415 MB / 0.9562 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.959e-05/0.005907, allocations: 50.55 kB / 0.9562 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.222e-05/0.005959, allocations: 24.84 kB / 0.9562 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.005979, allocations: 7.938 kB / 0.9562 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.006132, allocations: 138.9 kB / 0.9564 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=11): time 9.12e-07/0.006133, allocations: 0 / 0.9564 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11): time 0.0003045/0.006437, allocations: 173.6 kB / 0.9565 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.006493, allocations: 136.5 kB / 0.9567 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.006609, allocations: 183.9 kB / 0.9568 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.006625, allocations: 29.7 kB / 0.9569 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.006709, allocations: 131.9 kB / 0.957 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.006734, allocations: 35.69 kB / 0.957 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.006783, allocations: 41.95 kB / 0.9571 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.686e-05/0.00686, allocations: 330.8 kB / 0.9574 GB, free: 12.94 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.433e-05/0.006924, allocations: 35.97 kB / 0.9574 GB, free: 12.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.007028, allocations: 152.4 kB / 0.9576 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.007205, allocations: 198.3 kB / 0.9578 GB, free: 12.46 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.007208, allocations: 7.938 kB / 0.9578 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002158/0.007424, allocations: 205.2 kB / 0.958 GB, free: 12.24 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.007434, allocations: 4.5 kB / 0.958 GB, free: 12.24 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.007441, allocations: 8 kB / 0.958 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.007455, allocations: 11.98 kB / 0.958 GB, free: 12.22 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.714e-05/0.007522, allocations: 31.92 kB / 0.958 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.465e-06/0.007529, allocations: 7.938 kB / 0.958 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.253e-05/0.007602, allocations: 27.88 kB / 0.9581 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.00761, allocations: 8 kB / 0.9581 GB, free: 12.14 MB / 0.9167 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 7.753e-05/0.007687, allocations: 137.7 kB / 0.9582 GB, free: 12 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.007705, allocations: 23.84 kB / 0.9582 GB, free: 11.98 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.007733, allocations: 21.47 kB / 0.9582 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.007738, allocations: 0 / 0.9582 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.007743, allocations: 4 kB / 0.9582 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.007747, allocations: 3.984 kB / 0.9582 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.008147, allocations: 457.2 kB / 0.9587 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.008148, allocations: 0 / 0.9587 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.0082, allocations: 15.98 kB / 0.9587 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.008202, allocations: 0 / 0.9587 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.008212, allocations: 11.94 kB / 0.9587 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.008214, allocations: 3.984 kB / 0.9587 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.008216, allocations: 4 kB / 0.9587 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.008491, allocations: 351.4 kB / 0.959 GB, free: 11.06 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.448e-05/0.008506, allocations: 15.84 kB / 0.9591 GB, free: 11.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.008522, allocations: 8.312 kB / 0.9591 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.172e-05/0.008603, allocations: 12.03 kB / 0.9591 GB, free: 11.03 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.008642, allocations: 19.97 kB / 0.9591 GB, free: 11.01 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.008649, allocations: 8 kB / 0.9591 GB, free: 11 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 6.805e-05/0.008717, allocations: 133 kB / 0.9592 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.008717, allocations: 0 / 0.9592 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002098/0.008927, allocations: 43.83 kB / 0.9593 GB, free: 10.83 MB / 0.9167 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 7.268e-05/0.009, allocations: 104 kB / 0.9594 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001795/0.009179, allocations: 116.1 kB / 0.9595 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.009181, allocations: 0 / 0.9595 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.216e-05/0.009263, allocations: 47.91 kB / 0.9595 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.009588, allocations: 72.14 kB / 0.9596 GB, free: 10.49 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.009997, allocations: 351.2 kB / 0.9599 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.011e-05/0.01007, allocations: 108.3 kB / 0.96 GB, free: 9.98 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.576e-05/0.0101, allocations: 20.5 kB / 0.9601 GB, free: 9.957 MB / 0.9167 GB Notification: Performance of SimCode: time 3.41e-07/0.0101, allocations: 0 / 0.9601 GB, free: 9.957 MB / 0.9167 GB Notification: Performance of Templates: time 0.002373/0.01248, allocations: 2.16 MB / 0.9622 GB, free: 7.805 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 6.61754897236824]