Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.905/1.905, allocations: 289.9 MB / 297.4 MB, free: 6.371 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.001753/0.001754, allocations: 184.8 kB / 366.7 MB, free: 1.645 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.992/1.992, allocations: 205.2 MB / 0.626 GB, free: 7.121 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000917/0.0009171, allocations: 89.86 kB / 0.74 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.118e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7246/0.7247, allocations: 116.3 MB / 0.9733 GB, free: 76.03 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.9232, allocations: 140.3 MB / 1.11 GB, free: 9.824 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.9235, allocations: 68.78 kB / 1.11 GB, free: 9.758 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.009759/0.9333, allocations: 3.467 MB / 1.114 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.312e-06/0.9334, allocations: 0 / 1.114 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.71e-05/0.9334, allocations: 7.938 kB / 1.114 GB, free: 6.324 MB / 0.7136 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.0006504/0.934, allocations: 431.5 kB / 1.114 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.9341, allocations: 8.031 kB / 1.114 GB, free: 5.852 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.932e-05/0.9342, allocations: 24.45 kB / 1.114 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.9345, allocations: 226.7 kB / 1.114 GB, free: 5.566 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.9346, allocations: 6.656 kB / 1.114 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.9346, allocations: 11.39 kB / 1.114 GB, free: 5.555 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001285/0.9347, allocations: 46.36 kB / 1.114 GB, free: 5.512 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002382/0.935, allocations: 108.5 kB / 1.115 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.935, allocations: 0 / 1.115 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.935, allocations: 3.984 kB / 1.115 GB, free: 5.383 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.9351, allocations: 4 kB / 1.115 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.9362, allocations: 0.7282 MB / 1.115 GB, free: 4.602 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.039e-05/0.9363, allocations: 34.58 kB / 1.115 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.775e-05/0.9364, allocations: 16.86 kB / 1.115 GB, free: 4.539 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.9364, allocations: 2.812 kB / 1.115 GB, free: 4.539 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.9366, allocations: 113.6 kB / 1.115 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 3.988e-06/0.9366, allocations: 3.984 kB / 1.115 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002254/0.9368, allocations: 97.42 kB / 1.116 GB, free: 4.301 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.9369, allocations: 132.5 kB / 1.116 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.9371, allocations: 157.5 kB / 1.116 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.9371, allocations: 25.77 kB / 1.116 GB, free: 3.945 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.9372, allocations: 135.8 kB / 1.116 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.9372, allocations: 35.7 kB / 1.116 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.9372, allocations: 0 / 1.116 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.9374, allocations: 322.8 kB / 1.116 GB, free: 3.449 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.9374, allocations: 24.38 kB / 1.116 GB, free: 3.422 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.9375, allocations: 134.2 kB / 1.117 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.269e-05/0.9376, allocations: 35.98 kB / 1.117 GB, free: 3.207 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.9376, allocations: 0.875 kB / 1.117 GB, free: 3.207 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002413/0.9379, allocations: 161.1 kB / 1.117 GB, free: 3.043 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.9379, allocations: 4 kB / 1.117 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.9379, allocations: 4 kB / 1.117 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.9379, allocations: 8 kB / 1.117 GB, free: 3.027 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.9381, allocations: 40.42 kB / 1.117 GB, free: 2.988 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.9381, allocations: 8 kB / 1.117 GB, free: 2.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.9383, allocations: 23.88 kB / 1.117 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.9383, allocations: 15.94 kB / 1.117 GB, free: 2.941 MB / 0.7136 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 () * 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 9.385e-05/0.9384, allocations: 118.1 kB / 1.117 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001424/0.9385, allocations: 108.1 kB / 1.117 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.9386, allocations: 19.88 kB / 1.117 GB, free: 2.691 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.256e-05/0.9386, allocations: 17.83 kB / 1.117 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.9387, allocations: 4 kB / 1.117 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.9387, allocations: 0 / 1.117 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.9387, allocations: 0 / 1.117 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005711/0.9392, allocations: 475.3 kB / 1.117 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.9393, allocations: 0 / 1.117 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.9394, allocations: 23.98 kB / 1.118 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.9394, allocations: 0 / 1.118 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.9394, allocations: 4 kB / 1.118 GB, free: 2.137 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.9394, allocations: 3.938 kB / 1.118 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9394, allocations: 0 / 1.118 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.9398, allocations: 345.4 kB / 1.118 GB, free: 1.754 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.684e-05/0.9398, allocations: 92.92 kB / 1.118 GB, free: 1.645 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.9399, allocations: 4 kB / 1.118 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.9401, allocations: 23.97 kB / 1.118 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.9401, allocations: 17.86 kB / 1.118 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.9401, allocations: 8 kB / 1.118 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.986e-05/0.9402, allocations: 122.2 kB / 1.118 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9402, allocations: 0 / 1.118 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003203/0.9406, allocations: 27.94 kB / 1.118 GB, free: 1.449 MB / 0.7136 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 () * 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.0007245/0.9413, allocations: 1.083 MB / 1.119 GB, free: 328 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001845/0.9415, allocations: 87.83 kB / 1.119 GB, free: 240 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9415, allocations: 0 / 1.119 GB, free: 240 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.747e-05/0.9416, allocations: 35.94 kB / 1.119 GB, free: 204 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.942, allocations: 56.31 kB / 1.119 GB, free: 152 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007216/0.9428, allocations: 299.2 kB / 1.12 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.9431, allocations: 0.728 MB / 1.12 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.468e-05/0.9432, allocations: 20.08 kB / 1.12 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.704e-05/0.9433, allocations: 51.42 kB / 1.12 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/0.9433, allocations: 0 / 1.12 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.9647, allocations: 3.01 MB / 1.123 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.965, allocations: 150.6 kB / 1.124 GB, free: 11.86 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.62, allocations: 0 / 1.124 GB, free: 11.86 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)