Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.0007452/0.0007452, allocations: 72.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.0007254/0.0007254, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.838/0.838, allocations: 177.2 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.00132/0.00132, allocations: 230.5 kB / 260.2 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6361/0.6361, allocations: 138.4 MB / 455.1 MB, free: 29.91 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.6475 GB, free: 1.312 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.461e-05, allocations: 2.281 kB / 0.6475 GB, free: 1.309 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.2762/0.2762, allocations: 1.803 MB / 0.6493 GB, free: 56.31 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2776, allocations: 0.5453 MB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2777, allocations: 10.53 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.2779, allocations: 18.09 kB / 0.6499 GB, free: 56.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 8.088e-05/0.278, allocations: 38.39 kB / 0.6499 GB, free: 56.09 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.2783, allocations: 69.39 kB / 0.65 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.2786, allocations: 172.2 kB / 0.6501 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.2788, allocations: 37.52 kB / 0.6502 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.2789, allocations: 78.86 kB / 0.6502 GB, free: 56.03 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.279, allocations: 44.97 kB / 0.6503 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/0.279, allocations: 9.438 kB / 0.6503 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.619e-05/0.279, allocations: 11.06 kB / 0.6503 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.329e-05/0.2791, allocations: 27.56 kB / 0.6503 GB, free: 56.01 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 6.313e-05/0.2791, allocations: 43.06 kB / 0.6504 GB, free: 56 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.2793, allocations: 136.5 kB / 0.6505 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2793, allocations: 3.812 kB / 0.6505 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2793, allocations: 1.125 kB / 0.6505 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.2794, allocations: 0.9375 kB / 0.6505 GB, free: 55.97 MB / 0.5573 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.0006167/0.28, allocations: 422.2 kB / 0.6509 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.28, allocations: 12.66 kB / 0.6509 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.2801, allocations: 22.66 kB / 0.6509 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.2804, allocations: 172.3 kB / 0.6511 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2804, allocations: 9.094 kB / 0.6511 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.2804, allocations: 17.7 kB / 0.6511 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.2807, allocations: 152.9 kB / 0.6513 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2807, allocations: 1.344 kB / 0.6513 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2807, allocations: 5.625 kB / 0.6513 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2807, allocations: 7.906 kB / 0.6513 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.2809, allocations: 74.17 kB / 0.6514 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006989/0.2816, allocations: 0.6505 MB / 0.652 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.2817, allocations: 51.06 kB / 0.652 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.396e-05/0.2817, allocations: 33.11 kB / 0.6521 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2818, allocations: 0 / 0.6521 GB, free: 54.82 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.2819, allocations: 120.3 kB / 0.6522 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.2819, allocations: 0.6562 kB / 0.6522 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.0003604/0.2823, allocations: 166.3 kB / 0.6523 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.2824, allocations: 139 kB / 0.6525 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.2825, allocations: 189.7 kB / 0.6527 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.2825, allocations: 29.33 kB / 0.6527 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.2826, allocations: 134 kB / 0.6528 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.2826, allocations: 39.56 kB / 0.6529 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.2826, allocations: 41.09 kB / 0.6529 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.3e-05/0.2827, allocations: 327.2 kB / 0.6532 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.572e-05/0.2828, allocations: 39.92 kB / 0.6532 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.596e-05/0.2828, allocations: 145.7 kB / 0.6534 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.283, allocations: 203.3 kB / 0.6536 GB, free: 53.59 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.283, allocations: 4.141 kB / 0.6536 GB, free: 53.59 MB / 0.5573 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002412/0.2833, allocations: 209.2 kB / 0.6538 GB, free: 53.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2833, allocations: 6.844 kB / 0.6538 GB, free: 53.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2833, allocations: 4.688 kB / 0.6538 GB, free: 53.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2833, allocations: 9.156 kB / 0.6538 GB, free: 53.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.383e-05/0.2834, allocations: 38.89 kB / 0.6538 GB, free: 53.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.2834, allocations: 5.484 kB / 0.6538 GB, free: 53.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/0.2835, allocations: 25.3 kB / 0.6539 GB, free: 53.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.2835, allocations: 13.25 kB / 0.6539 GB, free: 53.48 MB / 0.5573 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.265e-05/0.2836, allocations: 130 kB / 0.654 GB, free: 53.35 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.047e-05/0.2836, allocations: 21.77 kB / 0.654 GB, free: 53.34 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.2836, allocations: 21.69 kB / 0.654 GB, free: 53.33 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.2836, allocations: 3.141 kB / 0.654 GB, free: 53.33 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2837, allocations: 4.094 kB / 0.654 GB, free: 53.33 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2837, allocations: 5.297 kB / 0.6541 GB, free: 53.33 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.2841, allocations: 459.9 kB / 0.6545 GB, free: 52.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2841, allocations: 2.672 kB / 0.6545 GB, free: 52.97 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/0.2842, allocations: 19.92 kB / 0.6545 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2842, allocations: 2.219 kB / 0.6545 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.2842, allocations: 6.953 kB / 0.6545 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.2842, allocations: 7.312 kB / 0.6545 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2842, allocations: 2.156 kB / 0.6545 GB, free: 52.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002915/0.2845, allocations: 357.1 kB / 0.6549 GB, free: 52.69 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.2845, allocations: 14.75 kB / 0.6549 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2845, allocations: 6.562 kB / 0.6549 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.2846, allocations: 12.08 kB / 0.6549 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.2847, allocations: 18.56 kB / 0.6549 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.2847, allocations: 3.219 kB / 0.6549 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 6.798e-05/0.2848, allocations: 137.6 kB / 0.6551 GB, free: 52.58 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.2848, allocations: 0 / 0.6551 GB, free: 52.58 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002318/0.285, allocations: 27.77 kB / 0.6551 GB, free: 52.58 MB / 0.5573 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.0001128/0.2851, allocations: 111.1 kB / 0.6552 GB, free: 52.48 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002186/0.2853, allocations: 114.6 kB / 0.6553 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2853, allocations: 0 / 0.6553 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 8.813e-05/0.2854, allocations: 49.73 kB / 0.6553 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.2858, allocations: 63.95 kB / 0.6554 GB, free: 52.42 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005193/0.2863, allocations: 358.3 kB / 0.6557 GB, free: 52.14 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.05e-05/0.2864, allocations: 109.5 kB / 0.6559 GB, free: 52.07 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.2865, allocations: 18.66 kB / 0.6559 GB, free: 52.07 MB / 0.5573 GB Notification: Performance of SimCode: time 9.82e-07/0.2865, allocations: 0 / 0.6559 GB, free: 52.07 MB / 0.5573 GB Notification: Performance of Templates: time 0.00426/0.2907, allocations: 2.189 MB / 0.658 GB, free: 51.91 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.405716398730874] Failed to read output from testmodel.py, exit status != 0: 0.29625260829925537 0.304830433 0.023836051 Calling exit ...