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 2.782/2.782, allocations: 287.5 MB / 302.4 MB, free: 8.363 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.001315/0.001314, allocations: 176.7 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.0009429/0.0009427, allocations: 94.31 kB / 0.743 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004969, allocations: 17.16 kB / 0.8658 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.222, allocations: 115.3 MB / 0.9783 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002254/0.2244, allocations: 1.496 MB / 0.9798 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2256, allocations: 0.5428 MB / 0.9803 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.2259, allocations: 0 / 0.9803 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.226, allocations: 23.8 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.711e-05/0.2261, allocations: 19.8 kB / 0.9804 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.2264, allocations: 55.94 kB / 0.9804 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.2266, allocations: 151.5 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.2268, allocations: 33.84 kB / 0.9806 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.183e-05/0.2269, allocations: 43.8 kB / 0.9807 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.397e-05/0.227, allocations: 47.7 kB / 0.9807 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.227, allocations: 8 kB / 0.9807 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.634e-05/0.2271, allocations: 4 kB / 0.9807 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.96e-05/0.2271, allocations: 15.92 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.2272, allocations: 49.58 kB / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.2273, allocations: 88.05 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.2273, allocations: 4 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2273, allocations: 0 / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.2273, allocations: 0 / 0.9809 GB, free: 25.77 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.0008051/0.2282, allocations: 454.6 kB / 0.9813 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.2282, allocations: 16 kB / 0.9813 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.931e-05/0.2283, allocations: 19.77 kB / 0.9813 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.2286, allocations: 222.7 kB / 0.9815 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.2286, allocations: 12 kB / 0.9816 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.2287, allocations: 15.91 kB / 0.9816 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/0.2291, allocations: 153.9 kB / 0.9817 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.2291, allocations: 7.875 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.2291, allocations: 4 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2291, allocations: 4 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003576/0.2295, allocations: 87.83 kB / 0.9818 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.2307, allocations: 0.7317 MB / 0.9825 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2309, allocations: 54.55 kB / 0.9826 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.2311, allocations: 36.84 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.2311, allocations: 3.984 kB / 0.9826 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003574/0.2315, allocations: 134.6 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.825e-06/0.2315, allocations: 0 / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0007362/0.2323, allocations: 185.4 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.2323, allocations: 132.5 kB / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.2326, allocations: 199.7 kB / 0.9832 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2326, allocations: 25.7 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.746e-05/0.2327, allocations: 139.7 kB / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.043e-05/0.2327, allocations: 39.75 kB / 0.9834 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.2328, allocations: 8 kB / 0.9834 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.172e-05/0.2328, allocations: 322.8 kB / 0.9837 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.233, allocations: 44.34 kB / 0.9838 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.2333, allocations: 151.2 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.2335, allocations: 59.98 kB / 0.984 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.2336, allocations: 7.938 kB / 0.984 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006167/0.2342, allocations: 209.2 kB / 0.9842 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.2342, allocations: 8 kB / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.2342, allocations: 4 kB / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2343, allocations: 4 kB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.2345, allocations: 40.25 kB / 0.9843 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.2345, allocations: 15.88 kB / 0.9843 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.2348, allocations: 31.83 kB / 0.9843 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.2348, allocations: 12 kB / 0.9843 GB, free: 21.89 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.0001326/0.235, allocations: 133.8 kB / 0.9844 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.235, allocations: 19.72 kB / 0.9845 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.567e-05/0.2351, allocations: 21.62 kB / 0.9845 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.2351, allocations: 8 kB / 0.9845 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.2351, allocations: 7.938 kB / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2351, allocations: 0 / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.2362, allocations: 0.525 MB / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.2362, allocations: 320 / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.2365, allocations: 19.98 kB / 0.985 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.2365, allocations: 0 / 0.985 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.2365, allocations: 15.95 kB / 0.985 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2365, allocations: 3.938 kB / 0.985 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2365, allocations: 4 kB / 0.985 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.2372, allocations: 372.1 kB / 0.9854 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.2373, allocations: 88.92 kB / 0.9855 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.2374, allocations: 12.03 kB / 0.9855 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.2376, allocations: 19.94 kB / 0.9855 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.2377, allocations: 19.92 kB / 0.9855 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.2378, allocations: 4 kB / 0.9855 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001409/0.2379, allocations: 140.4 kB / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2379, allocations: 0 / 0.9857 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004347/0.2384, allocations: 28 kB / 0.9857 GB, free: 20.37 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.0001311/0.2385, allocations: 115.2 kB / 0.9858 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005001/0.239, allocations: 119.8 kB / 0.9859 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.239, allocations: 0 / 0.9859 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.2393, allocations: 65.03 kB / 0.986 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.2401, allocations: 53.14 kB / 0.986 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007607/0.2408, allocations: 391.8 kB / 0.9864 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.2411, allocations: 0.7206 MB / 0.9871 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.2412, allocations: 21.86 kB / 0.9871 GB, free: 18.83 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.906e-05/0.2413, allocations: 19.38 kB / 0.9872 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of SimCode: time 1.062e-06/0.2413, allocations: 0 / 0.9872 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of Templates: time 0.006369/0.2477, allocations: 1.747 MB / 0.9889 GB, free: 17.09 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)