Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.222/2.222, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001506/0.001506, allocations: 178 kB / 325.5 MB, free: 2.887 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.398/2.398, allocations: 205.4 MB / 0.5764 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 104.2 kB / 0.6809 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004946/0.0004946, allocations: 11.03 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2195, allocations: 106.3 MB / 0.8988 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2274/0.447, allocations: 133.5 MB / 1.029 GB, free: 11.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.4474, allocations: 75.97 kB / 1.029 GB, free: 11.65 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01669/0.4641, allocations: 3.503 MB / 1.033 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.444e-06/0.4641, allocations: 0 / 1.033 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.327e-05/0.4642, allocations: 4 kB / 1.033 GB, free: 8.133 MB / 0.6823 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.001103/0.4653, allocations: 467.6 kB / 1.033 GB, free: 7.625 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.4654, allocations: 12.03 kB / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.674e-05/0.4655, allocations: 42.56 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.623e-05/0.4655, allocations: 15.81 kB / 1.033 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.466, allocations: 230.6 kB / 1.033 GB, free: 7.281 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.466, allocations: 11.98 kB / 1.033 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.017e-05/0.466, allocations: 15.94 kB / 1.033 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005197/0.4666, allocations: 153.7 kB / 1.034 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.4666, allocations: 0 / 1.034 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.4666, allocations: 4 kB / 1.034 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.4667, allocations: 4 kB / 1.034 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.4671, allocations: 87.83 kB / 1.034 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.4688, allocations: 0.755 MB / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.4691, allocations: 54.56 kB / 1.035 GB, free: 6.105 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.4691, allocations: 7.938 kB / 1.035 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.4696, allocations: 122.8 kB / 1.035 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 3.396e-06/0.4696, allocations: 0 / 1.035 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0009109/0.4705, allocations: 185.5 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.4707, allocations: 136.5 kB / 1.035 GB, free: 5.602 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.4709, allocations: 174.2 kB / 1.035 GB, free: 5.426 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.471, allocations: 33.7 kB / 1.035 GB, free: 5.387 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.4711, allocations: 131.8 kB / 1.035 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.4712, allocations: 31.77 kB / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.4712, allocations: 0 / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4714, allocations: 330.8 kB / 1.036 GB, free: 4.891 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000246/0.4717, allocations: 48.34 kB / 1.036 GB, free: 4.84 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.472, allocations: 147.3 kB / 1.036 GB, free: 4.645 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.4723, allocations: 63.91 kB / 1.036 GB, free: 4.582 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4723, allocations: 0 / 1.036 GB, free: 4.582 MB / 0.6823 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000714/0.473, allocations: 217.6 kB / 1.036 GB, free: 4.363 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.4731, allocations: 11.98 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.4731, allocations: 4 kB / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.4731, allocations: 4 kB / 1.036 GB, free: 4.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.4734, allocations: 47.8 kB / 1.036 GB, free: 4.297 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.4734, allocations: 7.938 kB / 1.036 GB, free: 4.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.4737, allocations: 36.06 kB / 1.036 GB, free: 4.254 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.4737, allocations: 11.98 kB / 1.036 GB, free: 4.242 MB / 0.6823 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,intWitRes1.trigger,$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.0001904/0.4739, allocations: 141.7 kB / 1.036 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/0.474, allocations: 19.72 kB / 1.036 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.157e-05/0.4741, allocations: 21.39 kB / 1.036 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.4741, allocations: 4 kB / 1.036 GB, free: 4.047 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4741, allocations: 0 / 1.036 GB, free: 4.047 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.4741, allocations: 4 kB / 1.036 GB, free: 4.043 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.4755, allocations: 0.5211 MB / 1.037 GB, free: 3.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4755, allocations: 4 kB / 1.037 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.4758, allocations: 23.92 kB / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.4758, allocations: 0 / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.4758, allocations: 8 kB / 1.037 GB, free: 3.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.4758, allocations: 3.953 kB / 1.037 GB, free: 3.426 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.4758, allocations: 4 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008855/0.4767, allocations: 413.6 kB / 1.037 GB, free: 2.977 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.457e-05/0.4768, allocations: 92.92 kB / 1.037 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.4769, allocations: 4.031 kB / 1.037 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.4772, allocations: 19.98 kB / 1.037 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.4773, allocations: 11.98 kB / 1.037 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.4773, allocations: 8 kB / 1.037 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001774/0.4775, allocations: 148.2 kB / 1.038 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.4e-07/0.4775, allocations: 0 / 1.038 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004792/0.478, allocations: 28 kB / 1.038 GB, free: 2.652 MB / 0.6823 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,intWitRes1.trigger,$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.001328/0.4793, allocations: 1.149 MB / 1.039 GB, free: 1.461 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005849/0.4799, allocations: 132.8 kB / 1.039 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4799, allocations: 0 / 1.039 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.4802, allocations: 51.91 kB / 1.039 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006779/0.4809, allocations: 68.95 kB / 1.039 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.4845, allocations: 3.51 MB / 1.042 GB, free: 13.57 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.485, allocations: 0.7284 MB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001462/0.4851, allocations: 17.55 kB / 1.043 GB, free: 12.79 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.4853, allocations: 51.36 kB / 1.043 GB, free: 12.75 MB / 0.698 GB Notification: Performance of SimCode: time 1.082e-06/0.4853, allocations: 0 / 1.043 GB, free: 12.75 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.5112, allocations: 3.541 MB / 1.047 GB, free: 9.359 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003329/0.5116, allocations: 184.4 kB / 1.047 GB, free: 9.117 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/3.059, allocations: 5.875 kB / 1.047 GB, free: 9.113 MB / 0.698 GB