Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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 1.458/1.458, allocations: 287.4 MB / 302.6 MB, free: 8.293 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.0009816/0.0009816, allocations: 188.9 kB / 371.1 MB, free: 10.82 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.234/1.234, allocations: 205.4 MB / 0.6298 GB, free: 10.45 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.0007138/0.0007139, allocations: 93.86 kB / 0.7431 GB, free: 6.445 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 12.66 kB / 0.8662 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1641, allocations: 115.3 MB / 0.9787 GB, free: 28.07 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.000753/0.1649, allocations: 401.8 kB / 0.9791 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1661, allocations: 1.176 MB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.1662, allocations: 4 kB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.1662, allocations: 0 / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.049e-05/0.1663, allocations: 11.91 kB / 0.9803 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006053/0.1669, allocations: 197.8 kB / 0.9805 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.167, allocations: 135.7 kB / 0.9806 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.037e-05/0.1671, allocations: 15.98 kB / 0.9806 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.706e-05/0.1672, allocations: 59.88 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.1673, allocations: 51.86 kB / 0.9807 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.1673, allocations: 8 kB / 0.9807 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.6e-05/0.1674, allocations: 27.92 kB / 0.9808 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.1674, allocations: 4 kB / 0.9808 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.1675, allocations: 41.7 kB / 0.9808 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.1676, allocations: 112 kB / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1676, allocations: 0 / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1676, allocations: 0 / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.1676, allocations: 4 kB / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003436/0.168, allocations: 406.8 kB / 0.9813 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.168, allocations: 11.97 kB / 0.9813 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.1681, allocations: 34.75 kB / 0.9814 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.1681, allocations: 12.88 kB / 0.9814 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.335e-05/0.1682, allocations: 172.2 kB / 0.9815 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.1682, allocations: 12.38 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.1682, allocations: 8.375 kB / 0.9816 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.345e-05/0.1683, allocations: 46.23 kB / 0.9816 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1684, allocations: 7.938 kB / 0.9816 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1684, allocations: 8 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1684, allocations: 3.938 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.378e-05/0.1684, allocations: 19.92 kB / 0.9816 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.1688, allocations: 352.7 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 6.674e-05/0.1689, allocations: 38.56 kB / 0.982 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.1689, allocations: 20.86 kB / 0.982 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.1689, allocations: 0 / 0.982 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/0.1691, allocations: 103.3 kB / 0.9821 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.1691, allocations: 0 / 0.9821 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0002274/0.1693, allocations: 125.5 kB / 0.9822 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.1694, allocations: 55.41 kB / 0.9823 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.947e-05/0.1694, allocations: 121.8 kB / 0.9824 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1694, allocations: 33.7 kB / 0.9824 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.1695, allocations: 88.38 kB / 0.9825 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.1695, allocations: 23.7 kB / 0.9826 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.1695, allocations: 8 kB / 0.9826 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.1696, allocations: 322.8 kB / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1697, allocations: 63.95 kB / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.1698, allocations: 106 kB / 0.983 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.17, allocations: 181.3 kB / 0.9832 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.17, allocations: 0 / 0.9832 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000338/0.1703, allocations: 280.8 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.783e-05/0.1704, allocations: 71.77 kB / 0.9835 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1704, allocations: 3.984 kB / 0.9835 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1704, allocations: 4 kB / 0.9835 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.208e-05/0.1705, allocations: 7.938 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.1705, allocations: 3.938 kB / 0.9836 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003319/0.1708, allocations: 80.03 kB / 0.9836 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.1708, allocations: 15.98 kB / 0.9837 GB, free: 22.7 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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 7.193e-05/0.1709, allocations: 135 kB / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.1709, allocations: 11.89 kB / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.068e-05/0.171, allocations: 12.31 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.171, allocations: 4 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.171, allocations: 0 / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.171, allocations: 0 / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.1712, allocations: 358.5 kB / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1712, allocations: 4 kB / 0.9842 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-06/0.1712, allocations: 3.984 kB / 0.9842 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1712, allocations: 0 / 0.9842 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1713, allocations: 12 kB / 0.9842 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1713, allocations: 0 / 0.9842 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1713, allocations: 0 / 0.9842 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.1714, allocations: 195.3 kB / 0.9844 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.093e-05/0.1714, allocations: 89 kB / 0.9844 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.1715, allocations: 4 kB / 0.9844 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.836e-05/0.1715, allocations: 4 kB / 0.9844 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.1716, allocations: 7.984 kB / 0.9845 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1716, allocations: 7.938 kB / 0.9845 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.911e-05/0.1716, allocations: 95.27 kB / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1716, allocations: 0 / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002328/0.1718, allocations: 28 kB / 0.9846 GB, free: 21.65 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003155/0.1722, allocations: 0.7398 MB / 0.9853 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002626/0.1724, allocations: 254.7 kB / 0.9855 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1725, allocations: 0 / 0.9855 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.724e-05/0.1725, allocations: 35.92 kB / 0.9856 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.1728, allocations: 26.48 kB / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009388/0.1737, allocations: 0.7529 MB / 0.9863 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.1738, allocations: 0.6887 MB / 0.987 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.689e-05/0.1739, allocations: 4.672 kB / 0.987 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.988e-05/0.1739, allocations: 23.42 kB / 0.987 GB, free: 19 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.1739, allocations: 4 kB / 0.987 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01381/0.1877, allocations: 2.697 MB / 0.9897 GB, free: 16.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001215/0.1879, allocations: 193.6 kB / 0.9899 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/1.76, allocations: 4 kB / 0.9899 GB, free: 16.21 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)