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.001494/0.001494, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001889/0.001889, allocations: 161 kB / 23.82 MB, free: 0.75 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.9572/0.9572, allocations: 177.2 MB / 204.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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 1.82/1.82, allocations: 377.9 MB / 0.6236 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 178] 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.634e-06/1.634e-06, allocations: 0 / 0.8115 GB, free: 1.711 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.38e-05, allocations: 6.25 kB / 0.8115 GB, free: 1.703 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00218/0.002203, allocations: 1.847 MB / 0.8134 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0008056/0.003009, allocations: 0.5588 MB / 0.8139 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.003097, allocations: 7.938 kB / 0.8139 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.00322, allocations: 29.36 kB / 0.8139 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.175e-05/0.003282, allocations: 31.72 kB / 0.814 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.003468, allocations: 61.45 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.00365, allocations: 183.3 kB / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.003761, allocations: 33.72 kB / 0.8142 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.857e-05/0.003859, allocations: 79.8 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.003916, allocations: 44.53 kB / 0.8143 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.00394, allocations: 11.94 kB / 0.8144 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 1.596e-05/0.003956, allocations: 12.88 kB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.099e-05/0.003987, allocations: 27.89 kB / 0.8144 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.00403, allocations: 41.45 kB / 0.8144 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.004165, allocations: 95.58 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004167, allocations: 0 / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.02e-07/0.004168, allocations: 0 / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.004172, allocations: 2.594 kB / 0.8145 GB, free: 14.66 MB / 0.7761 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.0005059/0.004678, allocations: 0.5147 MB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.004712, allocations: 12.03 kB / 0.815 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.18e-05/0.004764, allocations: 28.8 kB / 0.8151 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.004947, allocations: 185.5 kB / 0.8153 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.004959, allocations: 8.375 kB / 0.8153 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.004985, allocations: 16.91 kB / 0.8153 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.005164, allocations: 149.4 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.005172, allocations: 4.172 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.005185, allocations: 8.312 kB / 0.8154 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.005192, allocations: 7.938 kB / 0.8154 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.04e-05/0.005253, allocations: 36.42 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.005884, allocations: 0.8988 MB / 0.8163 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.325e-05/0.005947, allocations: 32.22 kB / 0.8164 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.748e-05/0.005974, allocations: 19.67 kB / 0.8164 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.005989, allocations: 0 / 0.8164 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.006104, allocations: 121.1 kB / 0.8165 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 8.72e-07/0.006105, allocations: 0 / 0.8165 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002077/0.006312, allocations: 115.2 kB / 0.8166 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.006366, allocations: 136.5 kB / 0.8168 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.006499, allocations: 236.5 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.006514, allocations: 29.7 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.473e-05/0.006589, allocations: 175.7 kB / 0.8172 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.006615, allocations: 43.88 kB / 0.8172 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.535e-05/0.00666, allocations: 43.36 kB / 0.8173 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.006765, allocations: 0.5009 MB / 0.8177 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.246e-05/0.006798, allocations: 16 kB / 0.8178 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.785e-05/0.006885, allocations: 173 kB / 0.8179 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.00703, allocations: 214.8 kB / 0.8181 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.007034, allocations: 4 kB / 0.8181 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001723/0.007206, allocations: 176 kB / 0.8183 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.007219, allocations: 4.594 kB / 0.8183 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.007225, allocations: 4 kB / 0.8183 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.007239, allocations: 9.125 kB / 0.8183 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.382e-05/0.007312, allocations: 31.92 kB / 0.8184 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.00732, allocations: 4.656 kB / 0.8184 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.3e-05/0.007383, allocations: 23.88 kB / 0.8184 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.007393, allocations: 12.66 kB / 0.8184 GB, free: 10.3 MB / 0.7761 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.866e-05/0.007472, allocations: 172.2 kB / 0.8186 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.007495, allocations: 23.84 kB / 0.8186 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.007524, allocations: 25.39 kB / 0.8186 GB, free: 10.08 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.007527, allocations: 4 kB / 0.8186 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.007531, allocations: 0 / 0.8186 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.007535, allocations: 0 / 0.8186 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.00789, allocations: 0.5043 MB / 0.8191 GB, free: 9.527 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.007892, allocations: 0 / 0.8191 GB, free: 9.527 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.007941, allocations: 19.92 kB / 0.8191 GB, free: 9.508 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.007944, allocations: 1.469 kB / 0.8191 GB, free: 9.508 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.007958, allocations: 4 kB / 0.8191 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.007959, allocations: 0 / 0.8191 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.007961, allocations: 4 kB / 0.8191 GB, free: 9.5 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.008175, allocations: 403.5 kB / 0.8195 GB, free: 9.078 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.516e-05/0.00819, allocations: 15.91 kB / 0.8195 GB, free: 9.062 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.008205, allocations: 5.172 kB / 0.8195 GB, free: 9.059 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.041e-05/0.008276, allocations: 11.97 kB / 0.8195 GB, free: 9.047 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.008318, allocations: 15.92 kB / 0.8196 GB, free: 9.031 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.008326, allocations: 9.078 kB / 0.8196 GB, free: 9.023 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.995e-05/0.008395, allocations: 168.2 kB / 0.8197 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.008396, allocations: 1.031 kB / 0.8197 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002067/0.008602, allocations: 28 kB / 0.8198 GB, free: 8.832 MB / 0.7761 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.568e-05/0.008678, allocations: 111.8 kB / 0.8199 GB, free: 8.711 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001323/0.00881, allocations: 87 kB / 0.8199 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.008812, allocations: 0 / 0.8199 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.008857, allocations: 31.67 kB / 0.82 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.009189, allocations: 77.02 kB / 0.82 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004007/0.009589, allocations: 338.5 kB / 0.8204 GB, free: 8.148 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.523e-05/0.009634, allocations: 75.98 kB / 0.8204 GB, free: 8.055 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.652e-05/0.009681, allocations: 16.23 kB / 0.8205 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.009718, allocations: 20.5 kB / 0.8205 GB, free: 8.016 MB / 0.7761 GB Notification: Performance of SimCode: time 8.42e-07/0.009719, allocations: 4 kB / 0.8205 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of Templates: time 0.003894/0.01361, allocations: 2.276 MB / 0.8227 GB, free: 5.801 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.012084993999451]