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 1.682/1.682, allocations: 287.4 MB / 302.5 MB, free: 8.359 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.001187/0.001187, allocations: 188.2 kB / 371.1 MB, free: 10.82 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.843/1.843, allocations: 205.4 MB / 0.6298 GB, free: 10.54 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.0008923/0.0008924, allocations: 97.95 kB / 0.7431 GB, free: 6.523 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.000434, allocations: 11.06 kB / 0.8662 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2463, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001851/0.2482, allocations: 1.479 MB / 0.9802 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007966/0.249, allocations: 0.5553 MB / 0.9807 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.843e-05/0.2491, allocations: 0 / 0.9807 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.2493, allocations: 27.8 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.515e-05/0.2494, allocations: 15.84 kB / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001802/0.2495, allocations: 55.88 kB / 0.9808 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000171/0.2497, allocations: 155.5 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.2499, allocations: 45.66 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.352e-05/0.2499, allocations: 35.8 kB / 0.981 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.228e-05/0.25, allocations: 47.7 kB / 0.9811 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.25, allocations: 4 kB / 0.9811 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.2501, allocations: 4 kB / 0.9811 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.2501, allocations: 31.84 kB / 0.9811 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.2501, allocations: 41.64 kB / 0.9812 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2502, allocations: 84.06 kB / 0.9812 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.2502, allocations: 0 / 0.9812 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.695e-06/0.2503, allocations: 0 / 0.9812 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2503, allocations: 8 kB / 0.9813 GB, free: 25.48 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.0005833/0.2509, allocations: 454.8 kB / 0.9817 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2509, allocations: 8.031 kB / 0.9817 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.2509, allocations: 42.73 kB / 0.9817 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.251, allocations: 20.75 kB / 0.9818 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.2512, allocations: 239.8 kB / 0.982 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.2512, allocations: 4.375 kB / 0.982 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.2513, allocations: 16.38 kB / 0.982 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.2515, allocations: 154 kB / 0.9821 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2515, allocations: 7.938 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.2516, allocations: 4 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2516, allocations: 4 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.2518, allocations: 79.88 kB / 0.9822 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007495/0.2525, allocations: 0.747 MB / 0.983 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2527, allocations: 54.48 kB / 0.983 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.539e-05/0.2528, allocations: 40.83 kB / 0.9831 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.2528, allocations: 7.938 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.253, allocations: 122.7 kB / 0.9832 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.253, allocations: 0 / 0.9832 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.000427/0.2535, allocations: 181.3 kB / 0.9834 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.2535, allocations: 136.8 kB / 0.9835 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.2537, allocations: 211.5 kB / 0.9837 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.2537, allocations: 25.7 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.465e-05/0.2537, allocations: 123.9 kB / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.2538, allocations: 35.7 kB / 0.9839 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/0.2538, allocations: 4 kB / 0.9839 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.2538, allocations: 326.8 kB / 0.9842 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.254, allocations: 43.97 kB / 0.9842 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.2541, allocations: 154.4 kB / 0.9844 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.2544, allocations: 214.3 kB / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2544, allocations: 0 / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003245/0.2547, allocations: 221.4 kB / 0.9848 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2547, allocations: 8 kB / 0.9848 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2548, allocations: 4 kB / 0.9848 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2548, allocations: 4 kB / 0.9848 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.2549, allocations: 35.92 kB / 0.9848 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.2549, allocations: 11.88 kB / 0.9848 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.2551, allocations: 31.92 kB / 0.9849 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.2551, allocations: 16 kB / 0.9849 GB, free: 21.35 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 8.935e-05/0.2552, allocations: 143 kB / 0.985 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.2552, allocations: 15.81 kB / 0.985 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.917e-05/0.2552, allocations: 21.39 kB / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2552, allocations: 4 kB / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2553, allocations: 0 / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2553, allocations: 4 kB / 0.9851 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.2559, allocations: 0.5252 MB / 0.9856 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2559, allocations: 8 kB / 0.9856 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.256, allocations: 23.92 kB / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.256, allocations: 4.281 kB / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.2561, allocations: 0 / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2561, allocations: 0 / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2561, allocations: 11.92 kB / 0.9856 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/0.2565, allocations: 376.2 kB / 0.986 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.2566, allocations: 92.92 kB / 0.9861 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.2566, allocations: 8.031 kB / 0.9861 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.2568, allocations: 19.98 kB / 0.9861 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.2568, allocations: 15.92 kB / 0.9861 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2568, allocations: 4 kB / 0.9861 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.248e-05/0.2569, allocations: 148.3 kB / 0.9863 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2569, allocations: 0 / 0.9863 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002821/0.2572, allocations: 27.94 kB / 0.9863 GB, free: 19.82 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.000622/0.2579, allocations: 0.9084 MB / 0.9872 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.2582, allocations: 127.7 kB / 0.9873 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2582, allocations: 0 / 0.9873 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.2583, allocations: 56.97 kB / 0.9874 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.2588, allocations: 59.98 kB / 0.9874 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.2603, allocations: 1.113 MB / 0.9885 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/0.2605, allocations: 0.7283 MB / 0.9892 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.781e-05/0.2606, allocations: 21.67 kB / 0.9892 GB, free: 16.64 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.023e-05/0.2607, allocations: 51.42 kB / 0.9893 GB, free: 16.59 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.2607, allocations: 0 / 0.9893 GB, free: 16.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01535/0.2761, allocations: 3.54 MB / 0.9927 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/0.2763, allocations: 191.4 kB / 0.9929 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.975, allocations: 0 / 0.9929 GB, free: 12.96 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)