Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.686/2.686, allocations: 287.3 MB / 302.3 MB, free: 8.285 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.001535/0.001535, allocations: 183.1 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.135/2.135, allocations: 205.4 MB / 0.6295 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 89.66 kB / 0.7428 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005228/0.0005231, allocations: 16.53 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2419, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9562/1.198, allocations: 139.9 MB / 1.115 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.198, allocations: 77.45 kB / 1.115 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01423/1.213, allocations: 3.48 MB / 1.118 GB, free: 31.11 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.815e-06/1.213, allocations: 0 / 1.118 GB, free: 31.11 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.184e-05/1.213, allocations: 3.906 kB / 1.118 GB, free: 31.11 MB / 0.698 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.0008401/1.214, allocations: 478.7 kB / 1.119 GB, free: 30.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.214, allocations: 11.8 kB / 1.119 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.489e-05/1.214, allocations: 42.36 kB / 1.119 GB, free: 30.65 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/1.214, allocations: 19.19 kB / 1.119 GB, free: 30.64 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/1.214, allocations: 222.9 kB / 1.119 GB, free: 30.43 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/1.214, allocations: 11.52 kB / 1.119 GB, free: 30.43 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/1.214, allocations: 20.48 kB / 1.119 GB, free: 30.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/1.215, allocations: 144 kB / 1.119 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/1.215, allocations: 0 / 1.119 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/1.215, allocations: 14.53 kB / 1.119 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/1.215, allocations: 0 / 1.119 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/1.215, allocations: 87.62 kB / 1.119 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/1.216, allocations: 0.7534 MB / 1.12 GB, free: 29.72 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/1.217, allocations: 54.91 kB / 1.12 GB, free: 29.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/1.217, allocations: 0 / 1.12 GB, free: 29.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003526/1.217, allocations: 130 kB / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.994e-06/1.217, allocations: 0 / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0007357/1.218, allocations: 184.7 kB / 1.12 GB, free: 29.56 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/1.218, allocations: 132.3 kB / 1.121 GB, free: 29.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/1.218, allocations: 186.8 kB / 1.121 GB, free: 29.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/1.218, allocations: 25.7 kB / 1.121 GB, free: 29.27 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.257e-05/1.218, allocations: 130.5 kB / 1.121 GB, free: 29.18 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/1.218, allocations: 38.83 kB / 1.121 GB, free: 29.16 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/1.218, allocations: 3 kB / 1.121 GB, free: 29.16 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001299/1.219, allocations: 331 kB / 1.121 GB, free: 28.84 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/1.219, allocations: 44.31 kB / 1.121 GB, free: 28.84 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/1.219, allocations: 153.6 kB / 1.121 GB, free: 28.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/1.219, allocations: 57.42 kB / 1.121 GB, free: 28.69 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/1.219, allocations: 7.75 kB / 1.122 GB, free: 28.68 MB / 0.698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006292/1.22, allocations: 211 kB / 1.122 GB, free: 28.62 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/1.22, allocations: 10.12 kB / 1.122 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/1.22, allocations: 3.75 kB / 1.122 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/1.22, allocations: 3.844 kB / 1.122 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/1.22, allocations: 39.56 kB / 1.122 GB, free: 28.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/1.22, allocations: 8 kB / 1.122 GB, free: 28.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/1.221, allocations: 33.94 kB / 1.122 GB, free: 28.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/1.221, allocations: 18.64 kB / 1.122 GB, free: 28.59 MB / 0.698 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 0.0001784/1.221, allocations: 138.8 kB / 1.122 GB, free: 28.47 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/1.221, allocations: 15.53 kB / 1.122 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.165e-05/1.221, allocations: 19.45 kB / 1.122 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/1.221, allocations: 3.844 kB / 1.122 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.221, allocations: 4 kB / 1.122 GB, free: 28.46 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/1.221, allocations: 7.859 kB / 1.122 GB, free: 28.45 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/1.222, allocations: 0.5252 MB / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/1.222, allocations: 0 / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/1.222, allocations: 21.59 kB / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/1.222, allocations: 3.875 kB / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/1.222, allocations: 3.312 kB / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/1.222, allocations: 7.781 kB / 1.123 GB, free: 28.07 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/1.222, allocations: 3.953 kB / 1.123 GB, free: 28.06 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008043/1.223, allocations: 408.3 kB / 1.123 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/1.223, allocations: 95.69 kB / 1.123 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/1.223, allocations: 3.906 kB / 1.123 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/1.224, allocations: 19.16 kB / 1.123 GB, free: 27.67 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/1.224, allocations: 16.47 kB / 1.123 GB, free: 27.66 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/1.224, allocations: 3.781 kB / 1.123 GB, free: 27.66 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001545/1.224, allocations: 141.1 kB / 1.123 GB, free: 27.59 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/1.224, allocations: 0 / 1.123 GB, free: 27.59 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004669/1.224, allocations: 33.41 kB / 1.123 GB, free: 27.59 MB / 0.698 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.001212/1.226, allocations: 1.156 MB / 1.124 GB, free: 26.56 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005247/1.226, allocations: 126.5 kB / 1.124 GB, free: 26.55 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.226, allocations: 0 / 1.124 GB, free: 26.55 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/1.227, allocations: 54.77 kB / 1.125 GB, free: 26.54 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007125/1.227, allocations: 66.61 kB / 1.125 GB, free: 26.53 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/1.232, allocations: 3.501 MB / 1.128 GB, free: 23.47 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/1.232, allocations: 0.7296 MB / 1.129 GB, free: 22.77 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001461/1.232, allocations: 19.64 kB / 1.129 GB, free: 22.77 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/1.232, allocations: 49.27 kB / 1.129 GB, free: 22.76 MB / 0.698 GB Notification: Performance of SimCode: time 1.332e-06/1.232, allocations: 7.938 kB / 1.129 GB, free: 22.75 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/1.257, allocations: 3.542 MB / 1.132 GB, free: 22.45 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/1.257, allocations: 186.1 kB / 1.132 GB, free: 22.21 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/3.828, allocations: 4 kB / 1.132 GB, free: 22.2 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)