Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.697/1.697, allocations: 285.6 MB / 293.1 MB, free: 10.23 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.001432/0.001432, allocations: 176.9 kB / 361.4 MB, free: 6.816 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.7/1.7, allocations: 205.2 MB / 0.62 GB, free: 11.64 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.0007806/0.0007806, allocations: 93.97 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.368e-05, allocations: 4 kB / 0.8518 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7317/0.7317, allocations: 115.3 MB / 0.9644 GB, free: 78.79 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.9156, allocations: 139.3 MB / 1.1 GB, free: 468 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.9159, allocations: 67.97 kB / 1.101 GB, free: 400 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01285/0.9288, allocations: 3.463 MB / 1.104 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.023e-06/0.9288, allocations: 0.5312 kB / 1.104 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.518e-05/0.9289, allocations: 4 kB / 1.104 GB, free: 12.98 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.0008668/0.9297, allocations: 443.5 kB / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.9298, allocations: 8.031 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.572e-05/0.9299, allocations: 23.41 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.9303, allocations: 226.6 kB / 1.105 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.9304, allocations: 6.312 kB / 1.105 GB, free: 12.21 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.9304, allocations: 8 kB / 1.105 GB, free: 12.21 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001651/0.9306, allocations: 43.48 kB / 1.105 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.9309, allocations: 113.4 kB / 1.105 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.9309, allocations: 5.344 kB / 1.105 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.9309, allocations: 7.984 kB / 1.105 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.931, allocations: 4 kB / 1.105 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.9323, allocations: 0.7166 MB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.9325, allocations: 34.58 kB / 1.106 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.723e-05/0.9326, allocations: 16.86 kB / 1.106 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.9326, allocations: 0 / 1.106 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.9329, allocations: 110.9 kB / 1.106 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.953e-06/0.9329, allocations: 4 kB / 1.106 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0003291/0.9332, allocations: 102.9 kB / 1.106 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.9333, allocations: 136.5 kB / 1.106 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.9335, allocations: 154.5 kB / 1.106 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.9336, allocations: 25.7 kB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.9337, allocations: 131.8 kB / 1.106 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.9338, allocations: 31.55 kB / 1.106 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-06/0.9338, allocations: 0.9375 kB / 1.106 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.934, allocations: 330.9 kB / 1.107 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.556e-05/0.9341, allocations: 24.38 kB / 1.107 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.9342, allocations: 130.2 kB / 1.107 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.9344, allocations: 39.92 kB / 1.107 GB, free: 9.859 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.9344, allocations: 0 / 1.107 GB, free: 9.859 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003758/0.9348, allocations: 161.4 kB / 1.107 GB, free: 9.695 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.9348, allocations: 5.5 kB / 1.107 GB, free: 9.691 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.9348, allocations: 4 kB / 1.107 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.9348, allocations: 8 kB / 1.107 GB, free: 9.68 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.935, allocations: 32.77 kB / 1.107 GB, free: 9.648 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.9351, allocations: 11.94 kB / 1.107 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.9353, allocations: 24.17 kB / 1.107 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.9353, allocations: 19.98 kB / 1.107 GB, free: 9.594 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 0.0001107/0.9355, allocations: 112.9 kB / 1.107 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002243/0.9357, allocations: 105.3 kB / 1.107 GB, free: 9.367 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-05/0.9357, allocations: 19.31 kB / 1.107 GB, free: 9.352 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.199e-05/0.9358, allocations: 21.83 kB / 1.107 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.9358, allocations: 4 kB / 1.107 GB, free: 9.32 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.9359, allocations: 6.969 kB / 1.107 GB, free: 9.316 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.9359, allocations: 0 / 1.107 GB, free: 9.316 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008493/0.9367, allocations: 470.1 kB / 1.108 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.9367, allocations: 0 / 1.108 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.9369, allocations: 23.92 kB / 1.108 GB, free: 8.789 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.937, allocations: 4 kB / 1.108 GB, free: 8.785 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.937, allocations: 4 kB / 1.108 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.937, allocations: 0 / 1.108 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.937, allocations: 4 kB / 1.108 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/0.9375, allocations: 345.4 kB / 1.108 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.732e-05/0.9376, allocations: 88.92 kB / 1.108 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.9376, allocations: 7.938 kB / 1.108 GB, free: 8.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.9379, allocations: 19.97 kB / 1.108 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/0.938, allocations: 15.98 kB / 1.108 GB, free: 8.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.9381, allocations: 8 kB / 1.108 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.000134/0.9382, allocations: 123.3 kB / 1.108 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.81e-07/0.9382, allocations: 0 / 1.108 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005851/0.9388, allocations: 31.94 kB / 1.108 GB, free: 8.09 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.0009193/0.9397, allocations: 1.094 MB / 1.109 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.94, allocations: 72.72 kB / 1.109 GB, free: 6.883 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.94, allocations: 4 kB / 1.109 GB, free: 6.879 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.9401, allocations: 40.25 kB / 1.109 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006831/0.9408, allocations: 55.81 kB / 1.11 GB, free: 6.789 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.9419, allocations: 294.1 kB / 1.11 GB, free: 6.457 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.9423, allocations: 0.7359 MB / 1.111 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001118/0.9424, allocations: 13.33 kB / 1.111 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.9425, allocations: 49.39 kB / 1.111 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of SimCode: time 5.11e-07/0.9425, allocations: 0 / 1.111 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.9674, allocations: 3.012 MB / 1.114 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002738/0.9677, allocations: 152.7 kB / 1.114 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.629, allocations: 1.375 kB / 1.114 GB, free: 2.52 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)