Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.493/1.493, allocations: 288.4 MB / 303.6 MB, free: 8.184 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.0009844/0.0009844, allocations: 183.1 kB / 372.3 MB, free: 10.1 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.231/1.231, allocations: 205.4 MB / 0.631 GB, free: 9.867 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.0006639/0.0006639, allocations: 94.33 kB / 0.7444 GB, free: 5.766 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003518, allocations: 12.19 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1531, allocations: 115.3 MB / 0.9802 GB, free: 27.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0006221/0.1538, allocations: 394 kB / 0.9806 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009243/0.1547, allocations: 1.04 MB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.053e-05/0.1547, allocations: 4 kB / 0.9816 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.169e-05/0.1548, allocations: 0 / 0.9816 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.425e-05/0.1548, allocations: 7.938 kB / 0.9816 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.155, allocations: 35.89 kB / 0.9816 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.678e-05/0.1551, allocations: 51.84 kB / 0.9817 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.376e-05/0.1552, allocations: 4 kB / 0.9817 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.846e-05/0.1552, allocations: 15.98 kB / 0.9817 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 3.888e-05/0.1553, allocations: 15.92 kB / 0.9817 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.1553, allocations: 7.984 kB / 0.9817 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.89e-05/0.1553, allocations: 23.92 kB / 0.9817 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.422e-05/0.1554, allocations: 3.984 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.22e-05/0.1554, allocations: 45.64 kB / 0.9818 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.19e-05/0.1555, allocations: 39.84 kB / 0.9818 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1555, allocations: 0 / 0.9818 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1555, allocations: 0 / 0.9818 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.1555, allocations: 0 / 0.9818 GB, free: 25.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004/0.1559, allocations: 371.7 kB / 0.9822 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.1559, allocations: 11.97 kB / 0.9822 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.734e-05/0.156, allocations: 38.73 kB / 0.9822 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.156, allocations: 8.844 kB / 0.9822 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.675e-05/0.1561, allocations: 172.3 kB / 0.9824 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.1561, allocations: 4.312 kB / 0.9824 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.1561, allocations: 8.375 kB / 0.9824 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.1563, allocations: 66.22 kB / 0.9825 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1563, allocations: 11.94 kB / 0.9825 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.1563, allocations: 0 / 0.9825 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1563, allocations: 0 / 0.9825 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.1565, allocations: 51.89 kB / 0.9825 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003044/0.1568, allocations: 292.7 kB / 0.9828 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.1569, allocations: 58.55 kB / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.791e-05/0.157, allocations: 40.95 kB / 0.9829 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1571, allocations: 0 / 0.9829 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.1572, allocations: 87.31 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1572, allocations: 0 / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000352/0.1576, allocations: 141.6 kB / 0.9831 GB, free: 24 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.1576, allocations: 51.41 kB / 0.9832 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.271e-05/0.1577, allocations: 105.8 kB / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.1577, allocations: 25.7 kB / 0.9833 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.1577, allocations: 92.05 kB / 0.9834 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.513e-05/0.1577, allocations: 19.81 kB / 0.9834 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.1578, allocations: 4 kB / 0.9834 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.494e-05/0.1578, allocations: 322.8 kB / 0.9837 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-05/0.1579, allocations: 27.98 kB / 0.9838 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.384e-05/0.158, allocations: 68.2 kB / 0.9838 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.1582, allocations: 104.2 kB / 0.9839 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1582, allocations: 0 / 0.9839 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002288/0.1584, allocations: 129.8 kB / 0.984 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.1584, allocations: 5.875 kB / 0.9841 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1584, allocations: 192 / 0.9841 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.1585, allocations: 4 kB / 0.9841 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.878e-05/0.1586, allocations: 27.92 kB / 0.9841 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1586, allocations: 0 / 0.9841 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.1586, allocations: 23.98 kB / 0.9841 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.1587, allocations: 4 kB / 0.9841 GB, free: 22.93 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.198e-05/0.1587, allocations: 127.2 kB / 0.9842 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.1587, allocations: 0 / 0.9842 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.159, allocations: 122 kB / 0.9843 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.159, allocations: 3.938 kB / 0.9843 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.159, allocations: 0 / 0.9843 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.159, allocations: 0 / 0.9843 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.1593, allocations: 378.3 kB / 0.9847 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1593, allocations: 48 / 0.9847 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.016e-05/0.1594, allocations: 19.97 kB / 0.9847 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1594, allocations: 0 / 0.9847 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.1594, allocations: 4 kB / 0.9847 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1594, allocations: 480 / 0.9847 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1594, allocations: 0 / 0.9847 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.1597, allocations: 215.4 kB / 0.9849 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.1597, allocations: 84.95 kB / 0.985 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1597, allocations: 4 kB / 0.985 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.1598, allocations: 15.98 kB / 0.985 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.1598, allocations: 11.92 kB / 0.9851 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.1599, allocations: 0 / 0.9851 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.034e-05/0.1599, allocations: 87.28 kB / 0.9851 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.1599, allocations: 0 / 0.9851 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002158/0.1601, allocations: 8 kB / 0.9851 GB, free: 21.77 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003803/0.1605, allocations: 0.7514 MB / 0.9859 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.1607, allocations: 71.95 kB / 0.9859 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1607, allocations: 3.938 kB / 0.9859 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.829e-05/0.1608, allocations: 43.97 kB / 0.986 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.1611, allocations: 7.938 kB / 0.986 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000705/0.1618, allocations: 0.5161 MB / 0.9865 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.565e-05/0.1619, allocations: 0.683 MB / 0.9872 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.744e-05/0.1619, allocations: 11.98 kB / 0.9872 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.1619, allocations: 15.44 kB / 0.9872 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of SimCode: time 2.9e-07/0.1619, allocations: 0 / 0.9872 GB, free: 19.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01071/0.1726, allocations: 1.53 MB / 0.9887 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/0.1728, allocations: 206.8 kB / 0.9889 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.403/1.576, allocations: 3.094 kB / 0.9889 GB, free: 17.96 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)