Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.764/2.764, allocations: 287.5 MB / 302.4 MB, free: 8.199 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.001347/0.001348, allocations: 176.9 kB / 371 MB, free: 10.88 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.144/2.144, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.000943/0.0009427, allocations: 92.41 kB / 0.743 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006976/0.0006979, allocations: 12.28 kB / 0.8659 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2211, allocations: 115.3 MB / 0.9785 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009034/0.2221, allocations: 397.8 kB / 0.9788 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2236, allocations: 1.04 MB / 0.9799 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.333e-05/0.2237, allocations: 4 kB / 0.9799 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.292e-05/0.2237, allocations: 3.938 kB / 0.9799 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.343e-05/0.2238, allocations: 4 kB / 0.9799 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.2241, allocations: 35.89 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.412e-05/0.2242, allocations: 43.84 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.323e-05/0.2243, allocations: 12 kB / 0.98 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.948e-05/0.2244, allocations: 11.92 kB / 0.98 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.635e-05/0.2244, allocations: 23.91 kB / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2245, allocations: 8 kB / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.98e-05/0.2245, allocations: 15.98 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.2246, allocations: 7.984 kB / 0.98 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.2246, allocations: 33.64 kB / 0.98 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.2247, allocations: 39.91 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2247, allocations: 4 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2247, allocations: 0 / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.82e-06/0.2248, allocations: 0 / 0.9801 GB, free: 26.59 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.0006044/0.2254, allocations: 367.5 kB / 0.9804 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2254, allocations: 12.02 kB / 0.9805 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.107e-05/0.2255, allocations: 42.56 kB / 0.9805 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.2255, allocations: 3.906 kB / 0.9805 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.407e-05/0.2256, allocations: 175 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.2256, allocations: 0 / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.2257, allocations: 4 kB / 0.9807 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.226, allocations: 77.59 kB / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.226, allocations: 0 / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.226, allocations: 0 / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.226, allocations: 3.938 kB / 0.9807 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.2263, allocations: 59.95 kB / 0.9808 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.2268, allocations: 276.8 kB / 0.9811 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.2271, allocations: 62.55 kB / 0.9811 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.2273, allocations: 44.84 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.2273, allocations: 0 / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.2276, allocations: 79.38 kB / 0.9812 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/0.2276, allocations: 4 kB / 0.9812 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006244/0.2282, allocations: 141.5 kB / 0.9814 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.2283, allocations: 55.36 kB / 0.9814 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.333e-05/0.2284, allocations: 117.8 kB / 0.9815 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2284, allocations: 25.7 kB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.637e-05/0.2285, allocations: 84.14 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.2285, allocations: 27.7 kB / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.2285, allocations: 4 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.2286, allocations: 314.8 kB / 0.982 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.2288, allocations: 35.97 kB / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2289, allocations: 60.27 kB / 0.9821 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.2291, allocations: 39.98 kB / 0.9821 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2292, allocations: 0 / 0.9821 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004399/0.2296, allocations: 125.6 kB / 0.9822 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.2296, allocations: 8 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2297, allocations: 0 / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.2297, allocations: 4 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.2299, allocations: 19.92 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2299, allocations: 4 kB / 0.9823 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.2301, allocations: 19.84 kB / 0.9823 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.2301, allocations: 8 kB / 0.9823 GB, free: 24.09 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 9.426e-05/0.2302, allocations: 119.2 kB / 0.9824 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.2302, allocations: 0 / 0.9824 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004358/0.2307, allocations: 126 kB / 0.9825 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2307, allocations: 4 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2307, allocations: 0 / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2307, allocations: 0 / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005921/0.2313, allocations: 370.4 kB / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2313, allocations: 0 / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2315, allocations: 20.17 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2315, allocations: 7.938 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.2315, allocations: 4 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2315, allocations: 0 / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2315, allocations: 4.141 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.2319, allocations: 207.5 kB / 0.9831 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/0.232, allocations: 92.89 kB / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.232, allocations: 0 / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.2322, allocations: 15.98 kB / 0.9832 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.2322, allocations: 11.94 kB / 0.9832 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2323, allocations: 4 kB / 0.9832 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.863e-05/0.2323, allocations: 83.28 kB / 0.9833 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2323, allocations: 4 kB / 0.9833 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003268/0.2327, allocations: 8 kB / 0.9833 GB, free: 22.93 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.0006888/0.2334, allocations: 0.7475 MB / 0.9841 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004299/0.2338, allocations: 83.89 kB / 0.9841 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2338, allocations: 0 / 0.9841 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.234, allocations: 35.97 kB / 0.9842 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.2344, allocations: 8 kB / 0.9842 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.2356, allocations: 0.5166 MB / 0.9847 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.2358, allocations: 0.6848 MB / 0.9854 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.614e-05/0.2359, allocations: 4.188 kB / 0.9854 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.119e-05/0.236, allocations: 19.38 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of SimCode: time 1.062e-06/0.236, allocations: 4 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.2558, allocations: 1.54 MB / 0.9869 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002348/0.2561, allocations: 199.9 kB / 0.9871 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.595/2.851, allocations: 0 / 0.9871 GB, free: 19.08 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)