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.891/1.891, allocations: 292.6 MB / 307.5 MB, free: 5.086 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.001196/0.001197, allocations: 185.1 kB / 377.1 MB, free: 1.438 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.766/1.766, allocations: 205.4 MB / 0.6366 GB, free: 8.664 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.0008567/0.0008566, allocations: 87.94 kB / 0.7509 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003423, allocations: 12 kB / 0.8749 GB, free: 11.14 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2808, allocations: 116.3 MB / 0.9884 GB, free: 6.695 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6837/0.9645, allocations: 141 MB / 1.126 GB, free: 33.99 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.9648, allocations: 75.77 kB / 1.126 GB, free: 33.93 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.008344/0.9732, allocations: 3.494 MB / 1.13 GB, free: 31.49 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.903e-06/0.9732, allocations: 0 / 1.13 GB, free: 31.49 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.334e-05/0.9732, allocations: 7.938 kB / 1.13 GB, free: 31.48 MB / 0.7292 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.0005599/0.9738, allocations: 467.8 kB / 1.13 GB, free: 31.01 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.9738, allocations: 12.58 kB / 1.13 GB, free: 31 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.9739, allocations: 41.98 kB / 1.13 GB, free: 30.95 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.217e-05/0.9739, allocations: 17.88 kB / 1.13 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.9742, allocations: 227.3 kB / 1.13 GB, free: 30.69 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.9742, allocations: 12 kB / 1.13 GB, free: 30.68 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.9742, allocations: 19.84 kB / 1.13 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.9745, allocations: 150.6 kB / 1.131 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.9745, allocations: 0 / 1.131 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.9745, allocations: 11.09 kB / 1.131 GB, free: 30.51 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.9745, allocations: 4 kB / 1.131 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.9748, allocations: 77.91 kB / 1.131 GB, free: 30.44 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008183/0.9756, allocations: 0.7625 MB / 1.131 GB, free: 29.68 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.9758, allocations: 54.03 kB / 1.131 GB, free: 29.62 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.9758, allocations: 4 kB / 1.131 GB, free: 29.62 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.976, allocations: 125.5 kB / 1.132 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.976, allocations: 0 / 1.132 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of matching and sorting (n=11): time 0.0004415/0.9765, allocations: 178.6 kB / 1.132 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.9765, allocations: 140.5 kB / 1.132 GB, free: 29.17 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.9767, allocations: 176.8 kB / 1.132 GB, free: 29.01 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.9767, allocations: 37.77 kB / 1.132 GB, free: 28.96 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.9768, allocations: 127 kB / 1.132 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.9768, allocations: 39.19 kB / 1.132 GB, free: 28.81 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/0.9768, allocations: 0 / 1.132 GB, free: 28.81 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.781e-05/0.9769, allocations: 330.4 kB / 1.133 GB, free: 28.48 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.977, allocations: 46.5 kB / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.9771, allocations: 155.9 kB / 1.133 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.9773, allocations: 59.41 kB / 1.133 GB, free: 28.2 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.9773, allocations: 0 / 1.133 GB, free: 28.2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003356/0.9776, allocations: 216.1 kB / 1.133 GB, free: 28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.9776, allocations: 8 kB / 1.133 GB, free: 27.99 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.9777, allocations: 4.5 kB / 1.133 GB, free: 27.99 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.9777, allocations: 8.75 kB / 1.133 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.9778, allocations: 38.55 kB / 1.133 GB, free: 27.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.9778, allocations: 4.625 kB / 1.133 GB, free: 27.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.978, allocations: 35.3 kB / 1.133 GB, free: 27.92 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.978, allocations: 8 kB / 1.133 GB, free: 27.91 MB / 0.7292 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 8.502e-05/0.9781, allocations: 147.5 kB / 1.133 GB, free: 27.76 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.9781, allocations: 15.81 kB / 1.133 GB, free: 27.74 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.9782, allocations: 20.78 kB / 1.133 GB, free: 27.73 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.9782, allocations: 4.625 kB / 1.133 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.9782, allocations: 0 / 1.133 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.9782, allocations: 4 kB / 1.133 GB, free: 27.72 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006152/0.9788, allocations: 0.53 MB / 1.134 GB, free: 27.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.9788, allocations: 0.6562 kB / 1.134 GB, free: 27.19 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.9789, allocations: 21.44 kB / 1.134 GB, free: 27.17 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.979, allocations: 0 / 1.134 GB, free: 27.17 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.979, allocations: 11.92 kB / 1.134 GB, free: 27.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.979, allocations: 0 / 1.134 GB, free: 27.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.979, allocations: 4 kB / 1.134 GB, free: 27.16 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.9794, allocations: 407.2 kB / 1.134 GB, free: 26.75 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/0.9795, allocations: 101.8 kB / 1.134 GB, free: 26.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.9795, allocations: 4 kB / 1.134 GB, free: 26.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.9797, allocations: 22.7 kB / 1.134 GB, free: 26.61 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.9798, allocations: 11.33 kB / 1.134 GB, free: 26.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.9798, allocations: 7.859 kB / 1.134 GB, free: 26.6 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.831e-05/0.9799, allocations: 145.8 kB / 1.134 GB, free: 26.47 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9799, allocations: 0 / 1.134 GB, free: 26.47 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003142/0.9802, allocations: 28 kB / 1.134 GB, free: 26.44 MB / 0.7292 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.0006536/0.9809, allocations: 1.157 MB / 1.136 GB, free: 25.27 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000284/0.9812, allocations: 124.9 kB / 1.136 GB, free: 25.16 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9812, allocations: 1 kB / 1.136 GB, free: 25.16 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.9813, allocations: 58.77 kB / 1.136 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.9817, allocations: 64.94 kB / 1.136 GB, free: 25.07 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.9834, allocations: 3.503 MB / 1.139 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.9836, allocations: 0.7211 MB / 1.14 GB, free: 20.82 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.741e-05/0.9837, allocations: 28.7 kB / 1.14 GB, free: 20.8 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.569e-05/0.9838, allocations: 46.91 kB / 1.14 GB, free: 20.76 MB / 0.7292 GB Notification: Performance of SimCode: time 1.282e-06/0.9838, allocations: 0 / 1.14 GB, free: 20.76 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.9983, allocations: 3.555 MB / 1.144 GB, free: 18.76 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.9985, allocations: 177.5 kB / 1.144 GB, free: 18.52 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.816, allocations: 0.8125 kB / 1.144 GB, free: 18.52 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)