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.001635/0.001635, allocations: 87.58 kB / 20.45 MB, free: 4.113 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.001862/0.001862, allocations: 161 kB / 23.82 MB, free: 0.7461 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.049/1.049, allocations: 177.1 MB / 204.2 MB, free: 5.641 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.831/1.831, allocations: 377.8 MB / 0.6236 GB, free: 8.535 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.663e-06/1.663e-06, allocations: 0 / 0.8115 GB, free: 1.715 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.715e-05/1.882e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.711 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003075/0.003094, allocations: 1.847 MB / 0.8133 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001/0.004094, allocations: 0.5584 MB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.228e-05/0.004186, allocations: 8.5 kB / 0.8139 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.004307, allocations: 27.67 kB / 0.8139 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.439e-05/0.004382, allocations: 29.08 kB / 0.814 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.004571, allocations: 65.78 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000211/0.004782, allocations: 183.4 kB / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.004894, allocations: 33.72 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.005006, allocations: 79.8 kB / 0.8143 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.255e-05/0.005068, allocations: 43.81 kB / 0.8143 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.005092, allocations: 13.97 kB / 0.8144 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 1.745e-05/0.005109, allocations: 12 kB / 0.8144 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.795e-05/0.005137, allocations: 19.92 kB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.23e-05/0.00519, allocations: 47.83 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.005335, allocations: 95.58 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.005336, allocations: 0 / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.11e-07/0.005337, allocations: 0.625 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.00534, allocations: 0.5312 kB / 0.8145 GB, free: 14.68 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.0005542/0.005894, allocations: 0.5154 MB / 0.815 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.005928, allocations: 8.562 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.005982, allocations: 34.23 kB / 0.8151 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.006205, allocations: 188.7 kB / 0.8153 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.006219, allocations: 8.375 kB / 0.8153 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.006251, allocations: 13.75 kB / 0.8153 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.006477, allocations: 151.7 kB / 0.8154 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.006487, allocations: 4.188 kB / 0.8154 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.0065, allocations: 5.531 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.006512, allocations: 7.938 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.709e-05/0.006599, allocations: 43.39 kB / 0.8155 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/0.007419, allocations: 0.8788 MB / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.553e-05/0.007495, allocations: 40.22 kB / 0.8164 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.712e-05/0.007532, allocations: 19.67 kB / 0.8164 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.00755, allocations: 0 / 0.8164 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001441/0.007694, allocations: 128.7 kB / 0.8165 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.007695, allocations: 0 / 0.8165 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0002485/0.007943, allocations: 118.8 kB / 0.8166 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.796e-05/0.008001, allocations: 132.5 kB / 0.8168 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.008167, allocations: 241.7 kB / 0.817 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.008186, allocations: 33.64 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.421e-05/0.00827, allocations: 174.7 kB / 0.8172 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.008304, allocations: 41.61 kB / 0.8172 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.008366, allocations: 43.36 kB / 0.8173 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.008506, allocations: 0.4962 MB / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.903e-05/0.008555, allocations: 15.98 kB / 0.8178 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.008685, allocations: 170.6 kB / 0.8179 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.008875, allocations: 212.1 kB / 0.8181 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.008877, allocations: 4 kB / 0.8181 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002565/0.009134, allocations: 177.6 kB / 0.8183 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.009147, allocations: 7.938 kB / 0.8183 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.009154, allocations: 4 kB / 0.8183 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.009174, allocations: 8 kB / 0.8183 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.009285, allocations: 34.33 kB / 0.8184 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.009295, allocations: 4 kB / 0.8184 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.009401, allocations: 23.88 kB / 0.8184 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.009414, allocations: 8 kB / 0.8184 GB, free: 10.32 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 9.591e-05/0.00951, allocations: 172.5 kB / 0.8186 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.009543, allocations: 24.84 kB / 0.8186 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.009583, allocations: 25.39 kB / 0.8186 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.009585, allocations: 1.062 kB / 0.8186 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.009589, allocations: 4 kB / 0.8186 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.009594, allocations: 0 / 0.8186 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.0101, allocations: 0.5095 MB / 0.8191 GB, free: 9.535 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.0101, allocations: 4 kB / 0.8191 GB, free: 9.531 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.01018, allocations: 17.11 kB / 0.8191 GB, free: 9.516 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.01018, allocations: 0 / 0.8191 GB, free: 9.516 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.0102, allocations: 4 kB / 0.8191 GB, free: 9.512 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.0102, allocations: 0.9688 kB / 0.8191 GB, free: 9.512 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.0102, allocations: 3.938 kB / 0.8191 GB, free: 9.508 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.01049, allocations: 408.1 kB / 0.8195 GB, free: 9.082 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/0.01051, allocations: 15.91 kB / 0.8195 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.01053, allocations: 0 / 0.8195 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.01066, allocations: 11.98 kB / 0.8195 GB, free: 9.055 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.01071, allocations: 15.92 kB / 0.8196 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.01072, allocations: 6.375 kB / 0.8196 GB, free: 9.035 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.389e-05/0.01082, allocations: 172.2 kB / 0.8197 GB, free: 8.867 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01082, allocations: 0 / 0.8197 GB, free: 8.867 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003832/0.0112, allocations: 28 kB / 0.8198 GB, free: 8.84 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 9.495e-05/0.0113, allocations: 107.2 kB / 0.8199 GB, free: 8.723 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001759/0.01147, allocations: 82.25 kB / 0.8199 GB, free: 8.641 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01147, allocations: 1.5 kB / 0.8199 GB, free: 8.641 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.49e-05/0.01154, allocations: 36.03 kB / 0.82 GB, free: 8.602 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.01207, allocations: 75.34 kB / 0.82 GB, free: 8.531 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/0.0125, allocations: 339.2 kB / 0.8204 GB, free: 8.16 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.475e-05/0.01254, allocations: 75.98 kB / 0.8204 GB, free: 8.066 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.53e-05/0.01259, allocations: 21.61 kB / 0.8205 GB, free: 8.039 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.01262, allocations: 20.5 kB / 0.8205 GB, free: 8.02 MB / 0.7761 GB Notification: Performance of SimCode: time 6.41e-07/0.01262, allocations: 0 / 0.8205 GB, free: 8.02 MB / 0.7761 GB Notification: Performance of Templates: time 0.003472/0.01609, allocations: 2.134 MB / 0.8226 GB, free: 5.941 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.2468450400047]