Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.481/1.481, allocations: 249.5 MB / 257 MB, free: 6.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 188.8 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.0008325/0.0008322, allocations: 88.52 kB / 0.6714 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.353e-05/2.355e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2592, allocations: 106.3 MB / 0.8853 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8497/1.109, allocations: 133.9 MB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/1.109, allocations: 75.45 kB / 1.016 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009105/1.118, allocations: 3.463 MB / 1.02 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.384e-06/1.118, allocations: 0 / 1.02 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.927e-05/1.119, allocations: 4 kB / 1.02 GB, free: 0.8594 MB / 0.6355 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.0006414/1.119, allocations: 445.6 kB / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.119, allocations: 12.03 kB / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.452e-05/1.119, allocations: 15.81 kB / 1.02 GB, free: 368 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/1.12, allocations: 227 kB / 1.02 GB, free: 108 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/1.12, allocations: 7.984 kB / 1.02 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/1.12, allocations: 11.69 kB / 1.02 GB, free: 92 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001099/1.12, allocations: 31.12 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/1.12, allocations: 122.8 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/1.12, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/1.12, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/1.12, allocations: 4 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/1.121, allocations: 0.7198 MB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 6.436e-05/1.121, allocations: 30.39 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.999e-05/1.121, allocations: 24.73 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/1.121, allocations: 8.125 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/1.121, allocations: 105.9 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/1.121, allocations: 4 kB / 1.021 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002372/1.122, allocations: 100.5 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/1.122, allocations: 128.5 kB / 1.021 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/1.122, allocations: 168.3 kB / 1.022 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/1.122, allocations: 25.7 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.552e-05/1.122, allocations: 130.6 kB / 1.022 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/1.122, allocations: 30.98 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/1.122, allocations: 0 / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000118/1.122, allocations: 334.3 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.417e-05/1.122, allocations: 20.06 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/1.122, allocations: 129.6 kB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.869e-05/1.122, allocations: 43.55 kB / 1.022 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/1.122, allocations: 3.953 kB / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000215/1.123, allocations: 152.7 kB / 1.022 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/1.123, allocations: 8 kB / 1.022 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.123, allocations: 4 kB / 1.022 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/1.123, allocations: 4 kB / 1.022 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/1.123, allocations: 35.92 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/1.123, allocations: 15.92 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/1.123, allocations: 35.86 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/1.123, allocations: 8 kB / 1.023 GB, free: 13.68 MB / 0.6511 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 8.778e-05/1.123, allocations: 115.5 kB / 1.023 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001467/1.123, allocations: 108.8 kB / 1.023 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/1.123, allocations: 15.81 kB / 1.023 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/1.123, allocations: 17.58 kB / 1.023 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.123, allocations: 0 / 1.023 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.123, allocations: 4.062 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/1.123, allocations: 4 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005523/1.124, allocations: 468.5 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.124, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/1.124, allocations: 19.92 kB / 1.023 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/1.124, allocations: 8 kB / 1.023 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/1.124, allocations: 3.938 kB / 1.023 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/1.124, allocations: 4 kB / 1.023 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.124, allocations: 0 / 1.023 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000312/1.125, allocations: 351.9 kB / 1.024 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/1.125, allocations: 89.05 kB / 1.024 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/1.125, allocations: 3.953 kB / 1.024 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/1.125, allocations: 19.36 kB / 1.024 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/1.125, allocations: 7.984 kB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/1.125, allocations: 8 kB / 1.024 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.163e-05/1.125, allocations: 131.5 kB / 1.024 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/1.125, allocations: 0 / 1.024 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003171/1.125, allocations: 27.84 kB / 1.024 GB, free: 12.28 MB / 0.6511 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.0007331/1.126, allocations: 1.09 MB / 1.025 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001718/1.126, allocations: 80.19 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.126, allocations: 0 / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.849e-05/1.126, allocations: 31.78 kB / 1.025 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/1.127, allocations: 68.14 kB / 1.025 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007156/1.128, allocations: 296.4 kB / 1.025 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/1.128, allocations: 0.7281 MB / 1.026 GB, free: 9.973 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.359e-05/1.128, allocations: 17.33 kB / 1.026 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.08e-05/1.128, allocations: 50.23 kB / 1.026 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/1.128, allocations: 0 / 1.026 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/1.15, allocations: 3.021 MB / 1.029 GB, free: 6.953 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/1.151, allocations: 151.5 kB / 1.029 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.751, allocations: 0 / 1.029 GB, free: 6.762 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)