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.588/2.588, allocations: 284.9 MB / 292.4 MB, free: 10.58 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.00151/0.00151, allocations: 180.8 kB / 360.6 MB, free: 7.305 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.192/2.192, allocations: 205.3 MB / 0.6191 GB, free: 12.21 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.001015/0.001015, allocations: 90.3 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.593e-05, allocations: 4 kB / 0.8508 GB, free: 3.344 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8878/0.8878, allocations: 115.3 MB / 0.9634 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2639/1.152, allocations: 139.1 MB / 1.099 GB, free: 1.355 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/1.152, allocations: 71.95 kB / 1.099 GB, free: 1.285 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01546/1.168, allocations: 3.469 MB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.683e-06/1.168, allocations: 0.875 kB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.249e-05/1.168, allocations: 4 kB / 1.103 GB, free: 13.88 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.0008597/1.169, allocations: 439.2 kB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/1.169, allocations: 8.031 kB / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/1.169, allocations: 23.17 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/1.169, allocations: 231.5 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/1.169, allocations: 4 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/1.169, allocations: 8 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001665/1.169, allocations: 33.38 kB / 1.103 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/1.17, allocations: 119.8 kB / 1.104 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/1.17, allocations: 0 / 1.104 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/1.17, allocations: 4 kB / 1.104 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/1.17, allocations: 4 kB / 1.104 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/1.171, allocations: 0.7243 MB / 1.104 GB, free: 12.15 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/1.171, allocations: 34.58 kB / 1.104 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.447e-05/1.172, allocations: 24.84 kB / 1.104 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/1.172, allocations: 0 / 1.104 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/1.172, allocations: 102.8 kB / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 3.527e-06/1.172, allocations: 0 / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0005552/1.173, allocations: 99.8 kB / 1.105 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/1.173, allocations: 136.6 kB / 1.105 GB, free: 11.69 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/1.173, allocations: 157.7 kB / 1.105 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/1.173, allocations: 29.7 kB / 1.105 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/1.173, allocations: 123.8 kB / 1.105 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/1.174, allocations: 39.69 kB / 1.105 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/1.174, allocations: 0 / 1.105 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002433/1.174, allocations: 326.8 kB / 1.105 GB, free: 11 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/1.174, allocations: 33.34 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/1.174, allocations: 120.8 kB / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/1.175, allocations: 43.92 kB / 1.105 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/1.175, allocations: 3.953 kB / 1.105 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006918/1.175, allocations: 153.6 kB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/1.175, allocations: 9.031 kB / 1.106 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/1.175, allocations: 4 kB / 1.106 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.511e-05/1.175, allocations: 8 kB / 1.106 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/1.176, allocations: 35.91 kB / 1.106 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-05/1.176, allocations: 11.94 kB / 1.106 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/1.177, allocations: 19.89 kB / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.325e-05/1.177, allocations: 19 kB / 1.106 GB, free: 10.5 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.0002115/1.177, allocations: 120.6 kB / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004683/1.177, allocations: 105.5 kB / 1.106 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/1.177, allocations: 19.75 kB / 1.106 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/1.178, allocations: 21.83 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/1.178, allocations: 4 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.178, allocations: 0 / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/1.178, allocations: 0 / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/1.179, allocations: 473.8 kB / 1.106 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.179, allocations: 0 / 1.106 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004001/1.18, allocations: 23.92 kB / 1.106 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.136e-05/1.18, allocations: 0 / 1.106 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/1.18, allocations: 4 kB / 1.106 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/1.18, allocations: 7.359 kB / 1.106 GB, free: 9.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.18, allocations: 0 / 1.106 GB, free: 9.68 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008134/1.181, allocations: 349.4 kB / 1.107 GB, free: 9.297 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/1.181, allocations: 92.95 kB / 1.107 GB, free: 9.188 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.529e-05/1.181, allocations: 7.953 kB / 1.107 GB, free: 9.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/1.182, allocations: 15.92 kB / 1.107 GB, free: 9.164 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/1.182, allocations: 15.98 kB / 1.107 GB, free: 9.148 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/1.182, allocations: 4 kB / 1.107 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001962/1.182, allocations: 124.3 kB / 1.107 GB, free: 9.023 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.71e-07/1.182, allocations: 4 kB / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009761/1.183, allocations: 31.94 kB / 1.107 GB, free: 8.988 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.001535/1.184, allocations: 1.093 MB / 1.108 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004513/1.185, allocations: 71.88 kB / 1.108 GB, free: 7.785 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/1.185, allocations: 0 / 1.108 GB, free: 7.785 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/1.185, allocations: 32.94 kB / 1.108 GB, free: 7.754 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009942/1.186, allocations: 64.47 kB / 1.108 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/1.188, allocations: 297.3 kB / 1.109 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005541/1.188, allocations: 0.7285 MB / 1.109 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002262/1.189, allocations: 23.22 kB / 1.109 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/1.189, allocations: 51.42 kB / 1.109 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of SimCode: time 1.282e-06/1.189, allocations: 0 / 1.109 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/1.234, allocations: 2.995 MB / 1.112 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003305/1.234, allocations: 146.8 kB / 1.112 GB, free: 3.426 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.796, allocations: 4.031 kB / 1.112 GB, free: 3.422 MB / 0.7136 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)