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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.748/2.748, allocations: 287.5 MB / 302.4 MB, free: 8.414 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.001434/0.001434, allocations: 189.4 kB / 371 MB, free: 10.84 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.211/2.211, allocations: 205.4 MB / 0.6297 GB, free: 10.46 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.0009208/0.0009205, allocations: 88.28 kB / 0.743 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007754/0.0007757, allocations: 11.84 kB / 0.8659 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2592, allocations: 115.3 MB / 0.9785 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003385/0.2626, allocations: 1.484 MB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001878/0.2646, allocations: 0.5506 MB / 0.9804 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.2648, allocations: 11.94 kB / 0.9804 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.265, allocations: 11.86 kB / 0.9805 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.2651, allocations: 19.8 kB / 0.9805 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.2655, allocations: 47.94 kB / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.00039/0.2659, allocations: 155.5 kB / 0.9807 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.2662, allocations: 37.84 kB / 0.9807 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.2663, allocations: 35.8 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2665, allocations: 47.7 kB / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.2665, allocations: 4 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.679e-05/0.2666, allocations: 4 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.767e-05/0.2666, allocations: 27.91 kB / 0.9808 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.196e-05/0.2667, allocations: 45.58 kB / 0.9809 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.2669, allocations: 88.05 kB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.267, allocations: 0 / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.635e-06/0.267, allocations: 4 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.267, allocations: 4 kB / 0.981 GB, free: 25.63 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.00117/0.2682, allocations: 450.6 kB / 0.9814 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/0.2683, allocations: 12.02 kB / 0.9814 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.896e-05/0.2684, allocations: 42.55 kB / 0.9814 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.2685, allocations: 31.7 kB / 0.9815 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.2689, allocations: 226.6 kB / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.2689, allocations: 8 kB / 0.9817 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.123e-05/0.269, allocations: 12 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.2696, allocations: 153.9 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2696, allocations: 0 / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.2697, allocations: 4 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.649e-06/0.2697, allocations: 4 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000565/0.2703, allocations: 86.41 kB / 0.9819 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.272, allocations: 0.7434 MB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.2724, allocations: 46.56 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.2727, allocations: 40.83 kB / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.2728, allocations: 11.94 kB / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004754/0.2733, allocations: 126.6 kB / 0.9829 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 3.597e-06/0.2733, allocations: 4 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.00115/0.2745, allocations: 185.2 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.2746, allocations: 128.9 kB / 0.9832 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.2749, allocations: 199.7 kB / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.275, allocations: 33.7 kB / 0.9834 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.2751, allocations: 131.8 kB / 0.9835 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.862e-05/0.2752, allocations: 35.55 kB / 0.9836 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.2752, allocations: 4 kB / 0.9836 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.445e-05/0.2753, allocations: 326.8 kB / 0.9839 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.2756, allocations: 48.36 kB / 0.9839 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.276, allocations: 148.6 kB / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.2764, allocations: 63.91 kB / 0.9841 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.2764, allocations: 0 / 0.9841 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0009525/0.2774, allocations: 213.5 kB / 0.9843 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.2775, allocations: 12.09 kB / 0.9843 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.2775, allocations: 4 kB / 0.9844 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.312e-05/0.2776, allocations: 7.953 kB / 0.9844 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.2779, allocations: 39.91 kB / 0.9844 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.278, allocations: 7.938 kB / 0.9844 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.2784, allocations: 35.73 kB / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.2784, allocations: 16.25 kB / 0.9845 GB, free: 21.71 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.0001928/0.2786, allocations: 135 kB / 0.9846 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.2787, allocations: 15.81 kB / 0.9846 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.429e-05/0.2788, allocations: 25.39 kB / 0.9846 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/0.2789, allocations: 4 kB / 0.9846 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.2789, allocations: 3.953 kB / 0.9846 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2789, allocations: 4 kB / 0.9846 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.2806, allocations: 0.5172 MB / 0.9851 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.2807, allocations: 4 kB / 0.9851 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.281, allocations: 27.86 kB / 0.9852 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/0.281, allocations: 7.953 kB / 0.9852 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/0.2811, allocations: 4 kB / 0.9852 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-05/0.2811, allocations: 7.984 kB / 0.9852 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.2811, allocations: 288 / 0.9852 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.2823, allocations: 380 kB / 0.9856 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.52e-05/0.2824, allocations: 88.92 kB / 0.9856 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.2825, allocations: 7.953 kB / 0.9856 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.2829, allocations: 20.03 kB / 0.9857 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.283, allocations: 19.97 kB / 0.9857 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.2831, allocations: 4 kB / 0.9857 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002081/0.2833, allocations: 140.4 kB / 0.9858 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.12e-07/0.2833, allocations: 0 / 0.9858 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007927/0.2841, allocations: 28 kB / 0.9858 GB, free: 20.18 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.001394/0.2856, allocations: 0.9121 MB / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008034/0.2864, allocations: 124 kB / 0.9869 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.2865, allocations: 4 kB / 0.9869 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.2868, allocations: 52.78 kB / 0.9869 GB, free: 19.06 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.2881, allocations: 61.5 kB / 0.987 GB, free: 19 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.2917, allocations: 1.111 MB / 0.9881 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.292, allocations: 0.7244 MB / 0.9888 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002012/0.2923, allocations: 21.55 kB / 0.9888 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.2924, allocations: 47.42 kB / 0.9888 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of SimCode: time 1.623e-06/0.2925, allocations: 0 / 0.9888 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.3209, allocations: 3.558 MB / 0.9923 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000266/0.3212, allocations: 198.8 kB / 0.9925 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/2.982, allocations: 0 / 0.9925 GB, free: 13.32 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)