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.62/1.62, allocations: 289.7 MB / 302.3 MB, free: 2.16 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.001094/0.001094, allocations: 182.1 kB / 371.6 MB, free: 3.375 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.571/1.571, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0008799/0.0008801, allocations: 90.19 kB / 0.745 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.161e-05/4.163e-05, allocations: 4 kB / 0.8663 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3121, allocations: 116.3 MB / 0.9799 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.088/1.4, allocations: 140.9 MB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/1.401, allocations: 75.31 kB / 1.118 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.008746/1.409, allocations: 3.476 MB / 1.121 GB, free: 40.93 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.224e-06/1.41, allocations: 0 / 1.121 GB, free: 40.93 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.717e-05/1.41, allocations: 8 kB / 1.121 GB, free: 40.93 MB / 0.7448 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.0005787/1.41, allocations: 446.6 kB / 1.121 GB, free: 40.49 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/1.41, allocations: 8.031 kB / 1.121 GB, free: 40.48 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.072e-05/1.41, allocations: 41.92 kB / 1.121 GB, free: 40.44 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.87e-05/1.41, allocations: 18.72 kB / 1.121 GB, free: 40.42 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/1.411, allocations: 236.4 kB / 1.122 GB, free: 40.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/1.411, allocations: 10.95 kB / 1.122 GB, free: 40.18 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/1.411, allocations: 12.31 kB / 1.122 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/1.411, allocations: 128 kB / 1.122 GB, free: 40.06 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/1.411, allocations: 3.938 kB / 1.122 GB, free: 40.05 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/1.411, allocations: 0 / 1.122 GB, free: 40.05 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/1.411, allocations: 8 kB / 1.122 GB, free: 40.05 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/1.411, allocations: 46.94 kB / 1.122 GB, free: 40.02 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000923/1.412, allocations: 0.7609 MB / 1.123 GB, free: 39.3 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.766e-05/1.412, allocations: 30.2 kB / 1.123 GB, free: 39.27 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.117e-05/1.412, allocations: 28.61 kB / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/1.412, allocations: 4.969 kB / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/1.412, allocations: 115.5 kB / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/1.412, allocations: 0 / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0002247/1.413, allocations: 104.4 kB / 1.123 GB, free: 39.05 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/1.413, allocations: 136.5 kB / 1.123 GB, free: 38.88 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/1.413, allocations: 175.9 kB / 1.123 GB, free: 38.74 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/1.413, allocations: 29.7 kB / 1.123 GB, free: 38.71 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/1.413, allocations: 137.2 kB / 1.123 GB, free: 38.6 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/1.413, allocations: 27.03 kB / 1.123 GB, free: 38.58 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-06/1.413, allocations: 4.531 kB / 1.123 GB, free: 38.58 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.416e-05/1.413, allocations: 333.3 kB / 1.124 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.036e-05/1.413, allocations: 32.16 kB / 1.124 GB, free: 38.23 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.467e-05/1.413, allocations: 123.3 kB / 1.124 GB, free: 38.07 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.055e-05/1.413, allocations: 50.34 kB / 1.124 GB, free: 38.04 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/1.413, allocations: 4 kB / 1.124 GB, free: 38.04 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002183/1.414, allocations: 182.3 kB / 1.124 GB, free: 37.89 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/1.414, allocations: 12.08 kB / 1.124 GB, free: 37.88 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/1.414, allocations: 4 kB / 1.124 GB, free: 37.88 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/1.414, allocations: 4.562 kB / 1.124 GB, free: 37.87 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/1.414, allocations: 35.45 kB / 1.124 GB, free: 37.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/1.414, allocations: 8.016 kB / 1.124 GB, free: 37.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/1.414, allocations: 32.89 kB / 1.124 GB, free: 37.81 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/1.414, allocations: 9 kB / 1.124 GB, free: 37.8 MB / 0.7448 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 7.592e-05/1.414, allocations: 125.8 kB / 1.124 GB, free: 37.68 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/1.414, allocations: 27.23 kB / 1.124 GB, free: 37.66 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/1.414, allocations: 20.59 kB / 1.124 GB, free: 37.65 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/1.414, allocations: 0 / 1.124 GB, free: 37.65 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.414, allocations: 4 kB / 1.124 GB, free: 37.65 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-06/1.414, allocations: 0 / 1.124 GB, free: 37.65 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005535/1.415, allocations: 0.4988 MB / 1.125 GB, free: 37.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/1.415, allocations: 4.844 kB / 1.125 GB, free: 37.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/1.415, allocations: 15.33 kB / 1.125 GB, free: 37.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/1.415, allocations: 4 kB / 1.125 GB, free: 37.16 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/1.415, allocations: 4 kB / 1.125 GB, free: 37.16 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/1.415, allocations: 0.9375 kB / 1.125 GB, free: 37.16 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.415, allocations: 4 kB / 1.125 GB, free: 37.16 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/1.415, allocations: 368.3 kB / 1.125 GB, free: 36.8 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/1.415, allocations: 94.28 kB / 1.125 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/1.415, allocations: 7.469 kB / 1.125 GB, free: 36.69 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/1.415, allocations: 20.8 kB / 1.125 GB, free: 36.68 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/1.416, allocations: 8.516 kB / 1.125 GB, free: 36.68 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/1.416, allocations: 7.422 kB / 1.125 GB, free: 36.67 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.886e-05/1.416, allocations: 142.8 kB / 1.125 GB, free: 36.55 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.082e-06/1.416, allocations: 0 / 1.125 GB, free: 36.55 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003012/1.416, allocations: 38.31 kB / 1.126 GB, free: 36.52 MB / 0.7448 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.0005269/1.416, allocations: 1.1 MB / 1.127 GB, free: 35.43 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000167/1.417, allocations: 82.5 kB / 1.127 GB, free: 35.37 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.417, allocations: 8.125 kB / 1.127 GB, free: 35.36 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.165e-05/1.417, allocations: 42.39 kB / 1.127 GB, free: 35.33 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004274/1.417, allocations: 59.19 kB / 1.127 GB, free: 35.3 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006705/1.418, allocations: 303.8 kB / 1.127 GB, free: 35.02 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/1.418, allocations: 0.7323 MB / 1.128 GB, free: 34.29 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.487e-05/1.418, allocations: 21.28 kB / 1.128 GB, free: 34.28 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/1.418, allocations: 45.02 kB / 1.128 GB, free: 34.27 MB / 0.7448 GB Notification: Performance of SimCode: time 2.91e-07/1.418, allocations: 8 kB / 1.128 GB, free: 34.26 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1985/1.617, allocations: 3.514 MB / 1.131 GB, free: 32.29 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/1.617, allocations: 153.7 kB / 1.131 GB, free: 32.07 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/3.37, allocations: 0 / 1.131 GB, free: 32.07 MB / 0.7448 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)