Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001797/0.001797, allocations: 80.41 kB / 20.23 MB, free: 4.195 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.002186/0.002186, allocations: 161.7 kB / 23.54 MB, free: 0.8867 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 1.481/1.481, allocations: 177.1 MB / 203.9 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.88/2.88, allocations: 377.8 MB / 0.6232 GB, free: 8.492 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 0.8108 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.63e-05/2.799e-05, allocations: 2.312 kB / 0.8108 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003664/0.003692, allocations: 1.79 MB / 0.8126 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.005268, allocations: 0.5556 MB / 0.8131 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.005403, allocations: 7.938 kB / 0.8131 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.005567, allocations: 19.73 kB / 0.8131 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.00568, allocations: 36.69 kB / 0.8132 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.005957, allocations: 67.84 kB / 0.8132 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.006273, allocations: 180.1 kB / 0.8134 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.006418, allocations: 33.78 kB / 0.8134 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.006585, allocations: 81.48 kB / 0.8135 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 8.086e-05/0.006666, allocations: 35.88 kB / 0.8135 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.006712, allocations: 12 kB / 0.8136 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 2.17e-05/0.006734, allocations: 8 kB / 0.8136 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.006777, allocations: 27.86 kB / 0.8136 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 7.542e-05/0.006853, allocations: 45.38 kB / 0.8136 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.007093, allocations: 139.4 kB / 0.8138 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.007095, allocations: 0 / 0.8138 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd: time 7.11e-07/0.007096, allocations: 0 / 0.8138 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.007101, allocations: 1.375 kB / 0.8138 GB, free: 13.92 MB / 0.7292 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.0008899/0.007991, allocations: 424.9 kB / 0.8142 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.008028, allocations: 8.031 kB / 0.8142 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.189e-05/0.00812, allocations: 28.84 kB / 0.8142 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.00848, allocations: 187.9 kB / 0.8144 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.008499, allocations: 8.375 kB / 0.8144 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.008539, allocations: 14.09 kB / 0.8144 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003765/0.008915, allocations: 147.8 kB / 0.8145 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.008926, allocations: 192 / 0.8145 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.008947, allocations: 8.359 kB / 0.8146 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.008959, allocations: 10.53 kB / 0.8146 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.009226, allocations: 70.11 kB / 0.8146 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.01031, allocations: 0.6494 MB / 0.8153 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.01048, allocations: 47.81 kB / 0.8153 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.01062, allocations: 34.64 kB / 0.8153 GB, free: 12.18 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.01065, allocations: 3.984 kB / 0.8153 GB, free: 12.17 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.01094, allocations: 130.6 kB / 0.8155 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.01094, allocations: 0.6562 kB / 0.8155 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0005897/0.01153, allocations: 171.5 kB / 0.8156 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.01164, allocations: 136.5 kB / 0.8158 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.01186, allocations: 190.1 kB / 0.8159 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.0119, allocations: 29.7 kB / 0.816 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.01201, allocations: 131.9 kB / 0.8161 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.501e-05/0.01206, allocations: 32.52 kB / 0.8161 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.01214, allocations: 41.7 kB / 0.8162 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001907/0.01233, allocations: 331.3 kB / 0.8165 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.01247, allocations: 36.81 kB / 0.8165 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.01273, allocations: 150.5 kB / 0.8167 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.01313, allocations: 203.2 kB / 0.8169 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.01314, allocations: 4 kB / 0.8169 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005065/0.01365, allocations: 216.9 kB / 0.8171 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.01367, allocations: 11.69 kB / 0.8171 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.01368, allocations: 4 kB / 0.8171 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.0137, allocations: 4.25 kB / 0.8171 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.01384, allocations: 31.92 kB / 0.8171 GB, free: 10.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.01386, allocations: 15.97 kB / 0.8171 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.01402, allocations: 27.88 kB / 0.8172 GB, free: 10.12 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.01404, allocations: 8 kB / 0.8172 GB, free: 10.12 MB / 0.7292 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.000146/0.01419, allocations: 140.4 kB / 0.8173 GB, free: 9.973 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.381e-05/0.01423, allocations: 21.69 kB / 0.8173 GB, free: 9.953 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.01428, allocations: 25.45 kB / 0.8173 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.01429, allocations: 0 / 0.8173 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.01429, allocations: 0 / 0.8173 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.0143, allocations: 4 kB / 0.8174 GB, free: 9.922 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008705/0.01517, allocations: 463.5 kB / 0.8178 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.01517, allocations: 0 / 0.8178 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.0153, allocations: 15.98 kB / 0.8178 GB, free: 9.418 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.0153, allocations: 1.062 kB / 0.8178 GB, free: 9.418 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.01532, allocations: 11.98 kB / 0.8178 GB, free: 9.406 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.01532, allocations: 1.125 kB / 0.8178 GB, free: 9.406 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.01533, allocations: 3.984 kB / 0.8178 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000622/0.01595, allocations: 361 kB / 0.8182 GB, free: 9.027 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.01599, allocations: 18.33 kB / 0.8182 GB, free: 9.012 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.01601, allocations: 4.031 kB / 0.8182 GB, free: 9.008 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.01619, allocations: 15.98 kB / 0.8182 GB, free: 8.992 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.01625, allocations: 11.98 kB / 0.8182 GB, free: 8.98 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.01627, allocations: 8 kB / 0.8182 GB, free: 8.973 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002644/0.01653, allocations: 134 kB / 0.8184 GB, free: 8.844 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.01653, allocations: 0 / 0.8184 GB, free: 8.844 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003644/0.0169, allocations: 27.94 kB / 0.8184 GB, free: 8.816 MB / 0.7292 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.0001531/0.01705, allocations: 113.1 kB / 0.8185 GB, free: 8.699 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003784/0.01743, allocations: 118.9 kB / 0.8186 GB, free: 8.586 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.01743, allocations: 0 / 0.8186 GB, free: 8.586 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.0176, allocations: 49.66 kB / 0.8186 GB, free: 8.539 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.0182, allocations: 62.02 kB / 0.8187 GB, free: 8.48 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007205/0.01892, allocations: 335.5 kB / 0.819 GB, free: 8.117 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.01906, allocations: 116.2 kB / 0.8191 GB, free: 7.984 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.96e-05/0.01914, allocations: 17.48 kB / 0.8192 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.6e-05/0.01919, allocations: 16.78 kB / 0.8192 GB, free: 7.949 MB / 0.7292 GB Notification: Performance of SimCode: time 5.51e-07/0.0192, allocations: 4 kB / 0.8192 GB, free: 7.945 MB / 0.7292 GB Notification: Performance of Templates: time 0.006215/0.02541, allocations: 2.142 MB / 0.8213 GB, free: 5.871 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 7.6949597710045055]