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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 191.4 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 222 MB, free: 4.988 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.448/1.448, allocations: 292.3 MB / 0.5484 GB, free: 13.68 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 69.47 kB / 0.6709 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1484, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00244/0.1508, allocations: 1.877 MB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000777/0.1516, allocations: 0.5736 MB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.084e-05/0.1517, allocations: 0 / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.1518, allocations: 23.8 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.974e-05/0.1519, allocations: 15.86 kB / 0.7852 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.1521, allocations: 67.88 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.1523, allocations: 163.4 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.1524, allocations: 41.66 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.837e-05/0.1525, allocations: 55.78 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.1525, allocations: 59.64 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.1526, allocations: 7.938 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.809e-05/0.1526, allocations: 8 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.1526, allocations: 23.91 kB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.405e-05/0.1527, allocations: 55.61 kB / 0.7857 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.1528, allocations: 127.7 kB / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1528, allocations: 3.938 kB / 0.7858 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.31e-07/0.1528, allocations: 0 / 0.7858 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.1528, allocations: 0 / 0.7858 GB, free: 10.81 MB / 0.6075 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.0005736/0.1534, allocations: 474.7 kB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.1534, allocations: 12.03 kB / 0.7863 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.718e-05/0.1535, allocations: 46.73 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.1535, allocations: 16.75 kB / 0.7863 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.1537, allocations: 227.9 kB / 0.7866 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.1537, allocations: 8.375 kB / 0.7866 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.1538, allocations: 12.38 kB / 0.7866 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.154, allocations: 146 kB / 0.7867 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.154, allocations: 3.938 kB / 0.7867 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.154, allocations: 8 kB / 0.7867 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1541, allocations: 4 kB / 0.7867 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.1543, allocations: 67.88 kB / 0.7868 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000726/0.155, allocations: 0.7509 MB / 0.7875 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.1551, allocations: 46.56 kB / 0.7876 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.801e-05/0.1552, allocations: 32.83 kB / 0.7876 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.1553, allocations: 0 / 0.7876 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/0.1555, allocations: 138.5 kB / 0.7877 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.1555, allocations: 0 / 0.7877 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004096/0.1559, allocations: 161.3 kB / 0.7879 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.156, allocations: 136.8 kB / 0.788 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.1561, allocations: 211.3 kB / 0.7882 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.1562, allocations: 29.7 kB / 0.7882 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.1562, allocations: 128.1 kB / 0.7884 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.1563, allocations: 35.45 kB / 0.7884 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.1563, allocations: 41.7 kB / 0.7884 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.366e-05/0.1564, allocations: 326.8 kB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1565, allocations: 35.97 kB / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.1567, allocations: 154.4 kB / 0.7889 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.157, allocations: 198.4 kB / 0.7891 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.157, allocations: 4 kB / 0.7891 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004259/0.1574, allocations: 205.3 kB / 0.7893 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.1574, allocations: 8 kB / 0.7893 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1574, allocations: 4 kB / 0.7893 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.1575, allocations: 4 kB / 0.7893 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.1576, allocations: 35.92 kB / 0.7894 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1576, allocations: 7.938 kB / 0.7894 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.1577, allocations: 23.83 kB / 0.7894 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.1578, allocations: 16.22 kB / 0.7894 GB, free: 6.711 MB / 0.6075 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.512e-05/0.1578, allocations: 144.5 kB / 0.7896 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.1579, allocations: 19.75 kB / 0.7896 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.1579, allocations: 21.39 kB / 0.7896 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1579, allocations: 4 kB / 0.7896 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1579, allocations: 0 / 0.7896 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1579, allocations: 4.25 kB / 0.7896 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006891/0.1586, allocations: 0.5209 MB / 0.7901 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.1587, allocations: 0 / 0.7901 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.1588, allocations: 19.98 kB / 0.7901 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1588, allocations: 0 / 0.7901 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1588, allocations: 4 kB / 0.7901 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1588, allocations: 3.938 kB / 0.7901 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1588, allocations: 7.938 kB / 0.7901 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004061/0.1592, allocations: 352.5 kB / 0.7905 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.1593, allocations: 97 kB / 0.7906 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.1593, allocations: 12.03 kB / 0.7906 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.1595, allocations: 15.92 kB / 0.7906 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.1595, allocations: 15.92 kB / 0.7906 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.1595, allocations: 4 kB / 0.7906 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.999e-05/0.1596, allocations: 136.6 kB / 0.7908 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.182e-06/0.1596, allocations: 4 kB / 0.7908 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002946/0.1599, allocations: 31.88 kB / 0.7908 GB, free: 5.203 MB / 0.6075 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,sampleTrigger.y,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005929/0.1605, allocations: 0.8967 MB / 0.7917 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002569/0.1608, allocations: 111.8 kB / 0.7918 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1608, allocations: 0 / 0.7918 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.1609, allocations: 48.91 kB / 0.7918 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.1614, allocations: 63.31 kB / 0.7919 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.1634, allocations: 2.301 MB / 0.7941 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.1636, allocations: 0.7284 MB / 0.7948 GB, free: 0.8125 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.111e-05/0.1637, allocations: 17.73 kB / 0.7949 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.388e-05/0.1638, allocations: 47.42 kB / 0.7949 GB, free: 0.7539 MB / 0.6075 GB Notification: Performance of SimCode: time 3.1e-07/0.1638, allocations: 4 kB / 0.7949 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.669/1.833, allocations: 3.667 MB / 0.7985 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003074/1.834, allocations: 211.2 kB / 0.7987 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/3.987, allocations: 0 / 0.7987 GB, free: 12.93 MB / 0.6231 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/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)