Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.766/1.766, allocations: 287.5 MB / 302.6 MB, free: 8.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 187.7 kB / 371.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.885/1.885, allocations: 205.4 MB / 0.6298 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009141/0.0009143, allocations: 100.3 kB / 0.7432 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005881/0.0005882, allocations: 15.88 kB / 0.8661 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2478, allocations: 115.3 MB / 0.9787 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002165/0.2501, allocations: 1.487 MB / 0.9801 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.2513, allocations: 0.5476 MB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.2514, allocations: 7.938 kB / 0.9807 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.2516, allocations: 11.86 kB / 0.9807 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.2517, allocations: 19.81 kB / 0.9807 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.252, allocations: 55.92 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.2522, allocations: 151.5 kB / 0.9809 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.2524, allocations: 53.56 kB / 0.9809 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.999e-05/0.2525, allocations: 47.78 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.534e-05/0.2526, allocations: 47.72 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.2526, allocations: 4 kB / 0.981 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.023e-05/0.2526, allocations: 4 kB / 0.981 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.2527, allocations: 15.92 kB / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.649e-05/0.2527, allocations: 53.56 kB / 0.9811 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.2529, allocations: 84.06 kB / 0.9812 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2529, allocations: 0 / 0.9812 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2529, allocations: 3.938 kB / 0.9812 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2529, allocations: 0 / 0.9812 GB, free: 25.61 MB / 0.6198 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.0007152/0.2536, allocations: 458.8 kB / 0.9816 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2537, allocations: 8.031 kB / 0.9816 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.986e-05/0.2538, allocations: 20.75 kB / 0.9817 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.254, allocations: 235.8 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.2541, allocations: 8.375 kB / 0.9819 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.53e-05/0.2541, allocations: 12.38 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.2545, allocations: 154.2 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2545, allocations: 7.875 kB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.2545, allocations: 8 kB / 0.9821 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2545, allocations: 0 / 0.9821 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.2548, allocations: 83.88 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009668/0.2558, allocations: 0.747 MB / 0.9829 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.256, allocations: 50.56 kB / 0.9829 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.2561, allocations: 40.83 kB / 0.983 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.2562, allocations: 0 / 0.983 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.2565, allocations: 134.7 kB / 0.9831 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.2565, allocations: 0 / 0.9831 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0005811/0.2571, allocations: 181.5 kB / 0.9833 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.2571, allocations: 128.5 kB / 0.9834 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.2573, allocations: 199.7 kB / 0.9836 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.2574, allocations: 29.7 kB / 0.9836 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.2574, allocations: 127.8 kB / 0.9837 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.2575, allocations: 43.69 kB / 0.9838 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-06/0.2575, allocations: 4 kB / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.181e-05/0.2576, allocations: 326.8 kB / 0.9841 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.2577, allocations: 43.97 kB / 0.9841 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2579, allocations: 154.4 kB / 0.9843 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.2583, allocations: 210.4 kB / 0.9845 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2583, allocations: 4 kB / 0.9845 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004896/0.2588, allocations: 221 kB / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.2589, allocations: 8 kB / 0.9847 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.2589, allocations: 4.5 kB / 0.9847 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.2589, allocations: 8 kB / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.2591, allocations: 36.17 kB / 0.9847 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.2591, allocations: 11.92 kB / 0.9847 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.2594, allocations: 36.06 kB / 0.9848 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.2594, allocations: 11.98 kB / 0.9848 GB, free: 21.53 MB / 0.6198 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.2595, allocations: 141.6 kB / 0.9849 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.2596, allocations: 23.81 kB / 0.985 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.2596, allocations: 21.39 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2596, allocations: 7.938 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2596, allocations: 3.938 kB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2597, allocations: 0 / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007897/0.2605, allocations: 0.5249 MB / 0.9855 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2605, allocations: 0 / 0.9855 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.2606, allocations: 19.98 kB / 0.9855 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2606, allocations: 0 / 0.9855 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.2607, allocations: 8 kB / 0.9855 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2607, allocations: 0 / 0.9855 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2607, allocations: 7.875 kB / 0.9855 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.2612, allocations: 376.2 kB / 0.9859 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.543e-05/0.2613, allocations: 92.95 kB / 0.986 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.2613, allocations: 4 kB / 0.986 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.2616, allocations: 23.98 kB / 0.986 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.2617, allocations: 11.92 kB / 0.986 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2617, allocations: 7.938 kB / 0.986 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001153/0.2618, allocations: 144.4 kB / 0.9862 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.8e-07/0.2618, allocations: 0 / 0.9862 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005148/0.2623, allocations: 28 kB / 0.9862 GB, free: 20 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001438/0.2625, allocations: 107.2 kB / 0.9863 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003894/0.2629, allocations: 124.6 kB / 0.9864 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.2629, allocations: 0 / 0.9864 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.2631, allocations: 56.03 kB / 0.9865 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.2639, allocations: 60.34 kB / 0.9865 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007478/0.2646, allocations: 391 kB / 0.9869 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.2648, allocations: 0.7206 MB / 0.9876 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001121/0.265, allocations: 25.84 kB / 0.9876 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.265, allocations: 23.38 kB / 0.9876 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of SimCode: time 3e-07/0.265, allocations: 0 / 0.9876 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of Templates: time 0.005626/0.2707, allocations: 1.744 MB / 0.9893 GB, free: 16.72 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)