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.761/2.761, allocations: 287.3 MB / 302.3 MB, free: 8.328 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.001573/0.001572, allocations: 189.1 kB / 370.8 MB, free: 10.87 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.113/2.113, allocations: 205.4 MB / 0.6295 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.00116/0.00116, allocations: 92.5 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00073/0.0007303, allocations: 12.81 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2366, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008861/0.2375, allocations: 393.8 kB / 0.9787 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001363/0.2389, allocations: 1.044 MB / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.853e-05/0.239, allocations: 0 / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.239, allocations: 0 / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.901e-05/0.2391, allocations: 7.984 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.2393, allocations: 35.83 kB / 0.9797 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.538e-05/0.2394, allocations: 27.97 kB / 0.9798 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.16e-05/0.2395, allocations: 8 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.181e-05/0.2396, allocations: 23.91 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.079e-05/0.2397, allocations: 23.86 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.2397, allocations: 0 / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.652e-05/0.2398, allocations: 11.98 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.88e-05/0.2398, allocations: 11.98 kB / 0.9798 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/0.2399, allocations: 37.64 kB / 0.9799 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.812e-05/0.24, allocations: 35.91 kB / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.24, allocations: 0 / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.623e-06/0.24, allocations: 0 / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.24, allocations: 0 / 0.9799 GB, free: 26.62 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.0005991/0.2406, allocations: 373.5 kB / 0.9803 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2407, allocations: 12.02 kB / 0.9803 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.2407, allocations: 38.55 kB / 0.9803 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.2408, allocations: 11.91 kB / 0.9803 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.424e-05/0.2409, allocations: 171 kB / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.2409, allocations: 0 / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.2409, allocations: 12 kB / 0.9805 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.2412, allocations: 69.59 kB / 0.9806 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2412, allocations: 4 kB / 0.9806 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.2412, allocations: 0 / 0.9806 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2412, allocations: 3.984 kB / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.2416, allocations: 55.95 kB / 0.9806 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.242, allocations: 280.8 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.2423, allocations: 66.48 kB / 0.9809 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.2423, allocations: 0 / 0.9809 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.2426, allocations: 79.5 kB / 0.981 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.2426, allocations: 0 / 0.981 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000613/0.2432, allocations: 141.5 kB / 0.9812 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.2433, allocations: 55.42 kB / 0.9812 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.68e-05/0.2434, allocations: 117.8 kB / 0.9813 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.2434, allocations: 29.7 kB / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.52e-05/0.2434, allocations: 80.14 kB / 0.9814 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.2435, allocations: 27.59 kB / 0.9815 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.2435, allocations: 0 / 0.9815 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.182e-05/0.2435, allocations: 322.8 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.2437, allocations: 31.97 kB / 0.9818 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.2439, allocations: 60.28 kB / 0.9818 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.2441, allocations: 43.97 kB / 0.9819 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2441, allocations: 0 / 0.9819 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004209/0.2446, allocations: 121.5 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2446, allocations: 8 kB / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2446, allocations: 4.125 kB / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2446, allocations: 0 / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.2448, allocations: 23.92 kB / 0.982 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2448, allocations: 4 kB / 0.982 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.245, allocations: 15.84 kB / 0.9821 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.245, allocations: 8.5 kB / 0.9821 GB, free: 24.16 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 8.169e-05/0.2451, allocations: 117.8 kB / 0.9822 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.2451, allocations: 7.938 kB / 0.9822 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/0.2455, allocations: 121.9 kB / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2456, allocations: 0 / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2456, allocations: 0 / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2456, allocations: 3.984 kB / 0.9823 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005762/0.2462, allocations: 374.4 kB / 0.9827 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2462, allocations: 0 / 0.9827 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.2463, allocations: 15.92 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2463, allocations: 4 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.2463, allocations: 4.25 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2464, allocations: 4 kB / 0.9827 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2464, allocations: 3.953 kB / 0.9827 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.2468, allocations: 203.5 kB / 0.9829 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.686e-05/0.2468, allocations: 88.95 kB / 0.983 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.2468, allocations: 0 / 0.983 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.247, allocations: 15.98 kB / 0.983 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.2471, allocations: 4 kB / 0.983 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.2471, allocations: 7.938 kB / 0.983 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.571e-05/0.2471, allocations: 83.28 kB / 0.9831 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.263e-06/0.2472, allocations: 4 kB / 0.9831 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003416/0.2475, allocations: 19.94 kB / 0.9831 GB, free: 23 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.0006961/0.2482, allocations: 0.7437 MB / 0.9838 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003958/0.2486, allocations: 83.88 kB / 0.9839 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2486, allocations: 256 / 0.9839 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.2488, allocations: 39.92 kB / 0.9839 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.2491, allocations: 14.02 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007154/0.2498, allocations: 0.9575 MB / 0.9849 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.25, allocations: 0.6888 MB / 0.9856 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.058e-05/0.25, allocations: 8.172 kB / 0.9856 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.882e-05/0.2501, allocations: 15.44 kB / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of SimCode: time 1.052e-06/0.2501, allocations: 0 / 0.9856 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02411/0.2742, allocations: 1.524 MB / 0.9871 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002815/0.2746, allocations: 189.7 kB / 0.9873 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/2.776, allocations: 0 / 0.9873 GB, free: 18.71 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)