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.001305/0.001305, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001482/0.001482, allocations: 169 kB / 24.28 MB, free: 276 kB / 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.9813/0.9813, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.835/1.835, allocations: 377.8 MB / 0.6239 GB, free: 8.574 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.403e-06/1.403e-06, allocations: 0 / 0.8115 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.018e-05, allocations: 7.219 kB / 0.8115 GB, free: 2.062 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002121/0.002141, allocations: 1.845 MB / 0.8133 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.000903/0.003044, allocations: 0.5645 MB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.682e-05/0.003141, allocations: 3.938 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.003277, allocations: 27.67 kB / 0.8139 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.379e-05/0.003341, allocations: 25.25 kB / 0.8139 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.003565, allocations: 67.84 kB / 0.814 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.003754, allocations: 179.4 kB / 0.8142 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.003882, allocations: 37.72 kB / 0.8142 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.003988, allocations: 81.3 kB / 0.8143 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.583e-05/0.004043, allocations: 35.88 kB / 0.8143 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.004069, allocations: 11.94 kB / 0.8143 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.004084, allocations: 12 kB / 0.8143 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.004113, allocations: 28.44 kB / 0.8144 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.004161, allocations: 44.38 kB / 0.8144 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.004308, allocations: 95.58 kB / 0.8145 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.00431, allocations: 1 kB / 0.8145 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004311, allocations: 4 kB / 0.8145 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.004315, allocations: 0.6875 kB / 0.8145 GB, free: 15.02 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.0005467/0.004862, allocations: 0.5152 MB / 0.815 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.004898, allocations: 9.406 kB / 0.815 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.603e-05/0.004954, allocations: 28.8 kB / 0.815 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.005164, allocations: 185.4 kB / 0.8152 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.005177, allocations: 12.38 kB / 0.8152 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.005204, allocations: 13.31 kB / 0.8153 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.005395, allocations: 148 kB / 0.8154 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.005404, allocations: 5 kB / 0.8154 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.00542, allocations: 384 / 0.8154 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.005431, allocations: 7.938 kB / 0.8154 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.907e-05/0.0055, allocations: 47.02 kB / 0.8154 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.006247, allocations: 0.8945 MB / 0.8163 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.073e-05/0.006318, allocations: 36.62 kB / 0.8164 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.099e-05/0.006349, allocations: 15.67 kB / 0.8164 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.006368, allocations: 4 kB / 0.8164 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.006508, allocations: 116.9 kB / 0.8165 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.773e-06/0.00651, allocations: 0 / 0.8165 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.000242/0.006752, allocations: 116.6 kB / 0.8166 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.006813, allocations: 136.5 kB / 0.8167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.006953, allocations: 240.5 kB / 0.817 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.006968, allocations: 29.7 kB / 0.817 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.007192, allocations: 174.7 kB / 0.8172 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.007223, allocations: 43.88 kB / 0.8172 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.007272, allocations: 47.36 kB / 0.8172 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.007395, allocations: 0.4962 MB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.007429, allocations: 12.48 kB / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.561e-05/0.007525, allocations: 180.5 kB / 0.8179 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.007671, allocations: 210.7 kB / 0.8181 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.007674, allocations: 0 / 0.8181 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000184/0.007858, allocations: 173.7 kB / 0.8183 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.007875, allocations: 8 kB / 0.8183 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.007881, allocations: 4 kB / 0.8183 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.007898, allocations: 4 kB / 0.8183 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.991e-05/0.007978, allocations: 38.89 kB / 0.8183 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.007985, allocations: 4 kB / 0.8183 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.81e-05/0.008053, allocations: 23.88 kB / 0.8184 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.008065, allocations: 12 kB / 0.8184 GB, free: 10.67 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 8.55e-05/0.008151, allocations: 168.5 kB / 0.8185 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.008175, allocations: 23.84 kB / 0.8185 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.365e-05/0.008208, allocations: 25.39 kB / 0.8186 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.008212, allocations: 4.938 kB / 0.8186 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.008218, allocations: 0 / 0.8186 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.008223, allocations: 5.062 kB / 0.8186 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.008645, allocations: 0.5044 MB / 0.8191 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.008649, allocations: 4 kB / 0.8191 GB, free: 9.887 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.422e-05/0.008703, allocations: 17.08 kB / 0.8191 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.008706, allocations: 4.281 kB / 0.8191 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.008721, allocations: 1.125 kB / 0.8191 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.008725, allocations: 4 kB / 0.8191 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.008726, allocations: 0 / 0.8191 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.008979, allocations: 407.3 kB / 0.8195 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/0.008996, allocations: 11.91 kB / 0.8195 GB, free: 9.426 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.009015, allocations: 8 kB / 0.8195 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.316e-05/0.009088, allocations: 8.484 kB / 0.8195 GB, free: 9.41 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.009139, allocations: 21.05 kB / 0.8195 GB, free: 9.391 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.009146, allocations: 4 kB / 0.8195 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.112e-05/0.009217, allocations: 168.2 kB / 0.8197 GB, free: 9.223 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.009217, allocations: 1.062 kB / 0.8197 GB, free: 9.223 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002331/0.009451, allocations: 28 kB / 0.8197 GB, free: 9.195 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 8.011e-05/0.009531, allocations: 116.4 kB / 0.8198 GB, free: 9.07 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001431/0.009674, allocations: 79.84 kB / 0.8199 GB, free: 8.992 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.009676, allocations: 1.188 kB / 0.8199 GB, free: 8.992 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.715e-05/0.009723, allocations: 39.61 kB / 0.82 GB, free: 8.949 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.01007, allocations: 69.64 kB / 0.82 GB, free: 8.887 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004414/0.01051, allocations: 341.4 kB / 0.8204 GB, free: 8.512 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.701e-05/0.01056, allocations: 75.92 kB / 0.8204 GB, free: 8.418 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.913e-05/0.01062, allocations: 20.05 kB / 0.8204 GB, free: 8.395 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.01066, allocations: 20.5 kB / 0.8205 GB, free: 8.375 MB / 0.7761 GB Notification: Performance of SimCode: time 7.32e-07/0.01066, allocations: 0 / 0.8205 GB, free: 8.375 MB / 0.7761 GB Notification: Performance of Templates: time 0.003793/0.01445, allocations: 2.13 MB / 0.8225 GB, free: 6.309 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.17581889196299]