Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.43/1.43, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.001041, allocations: 186.8 kB / 326.6 MB, free: 2.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.4 MB / 0.5777 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 86.36 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.0003708, allocations: 9.688 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2416, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001412/0.2431, allocations: 1.101 MB / 0.9014 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004183/0.2435, allocations: 224.2 kB / 0.9016 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.205e-05/0.2436, allocations: 0 / 0.9016 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.369e-05/0.2436, allocations: 0 / 0.9016 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.731e-05/0.2437, allocations: 11.94 kB / 0.9016 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.2439, allocations: 19.98 kB / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.293e-05/0.244, allocations: 43.84 kB / 0.9017 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.651e-05/0.2441, allocations: 7.984 kB / 0.9017 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.31e-05/0.2441, allocations: 15.92 kB / 0.9017 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.497e-05/0.2442, allocations: 23.86 kB / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.2442, allocations: 0 / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.363e-05/0.2442, allocations: 4 kB / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.625e-05/0.2442, allocations: 8 kB / 0.9017 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.708e-05/0.2443, allocations: 37.62 kB / 0.9018 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.248e-05/0.2444, allocations: 31.92 kB / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2444, allocations: 0 / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.874e-06/0.2444, allocations: 0 / 0.9018 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2444, allocations: 0 / 0.9018 GB, free: 62.25 MB / 0.6042 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.000499/0.245, allocations: 367.5 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.245, allocations: 12.03 kB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.245, allocations: 34.56 kB / 0.9022 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2451, allocations: 4 kB / 0.9022 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.734e-05/0.2452, allocations: 167 kB / 0.9024 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2452, allocations: 4 kB / 0.9024 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.2452, allocations: 0 / 0.9024 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.2454, allocations: 81.58 kB / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2455, allocations: 0 / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.2455, allocations: 0 / 0.9024 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2455, allocations: 4 kB / 0.9024 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.2457, allocations: 51.95 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.2461, allocations: 288.7 kB / 0.9028 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.2463, allocations: 62.48 kB / 0.9028 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.969e-05/0.2464, allocations: 48.94 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.2464, allocations: 0 / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.2466, allocations: 79.38 kB / 0.9029 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2466, allocations: 0 / 0.9029 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003944/0.247, allocations: 137.6 kB / 0.9031 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.2471, allocations: 59.36 kB / 0.9031 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.446e-05/0.2472, allocations: 113.7 kB / 0.9032 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.2472, allocations: 37.7 kB / 0.9033 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.213e-05/0.2472, allocations: 80.14 kB / 0.9034 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.2472, allocations: 19.88 kB / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.2473, allocations: 0 / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.661e-05/0.2473, allocations: 318.8 kB / 0.9037 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.214e-05/0.2474, allocations: 31.92 kB / 0.9037 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.2475, allocations: 68.27 kB / 0.9038 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.81e-05/0.2477, allocations: 39.97 kB / 0.9038 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2477, allocations: 0 / 0.9038 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002298/0.2479, allocations: 117.4 kB / 0.9039 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2479, allocations: 14.64 kB / 0.9039 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2479, allocations: 4.125 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.248, allocations: 4 kB / 0.9039 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.2481, allocations: 23.92 kB / 0.904 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2481, allocations: 4 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.2481, allocations: 11.95 kB / 0.904 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.2482, allocations: 0 / 0.904 GB, free: 59.76 MB / 0.6042 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 7.683e-05/0.2482, allocations: 121.8 kB / 0.9041 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.2483, allocations: 11.91 kB / 0.9041 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003087/0.2486, allocations: 118 kB / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2486, allocations: 0 / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2486, allocations: 0 / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2486, allocations: 0 / 0.9042 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003559/0.249, allocations: 370.5 kB / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.249, allocations: 0 / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.249, allocations: 19.92 kB / 0.9046 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2491, allocations: 4 kB / 0.9046 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.2491, allocations: 4 kB / 0.9046 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2491, allocations: 0 / 0.9046 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2491, allocations: 3.953 kB / 0.9046 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.2493, allocations: 207.4 kB / 0.9048 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/0.2494, allocations: 81.11 kB / 0.9049 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.2494, allocations: 3.984 kB / 0.9049 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.259e-05/0.2495, allocations: 8 kB / 0.9049 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.2495, allocations: 11.94 kB / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.2496, allocations: 192 / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.115e-05/0.2496, allocations: 91.52 kB / 0.905 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2496, allocations: 7.938 kB / 0.905 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002052/0.2498, allocations: 16 kB / 0.905 GB, free: 58.6 MB / 0.6042 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.0004326/0.2503, allocations: 0.7402 MB / 0.9057 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.2505, allocations: 79.89 kB / 0.9058 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2505, allocations: 3.938 kB / 0.9058 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.2506, allocations: 48.22 kB / 0.9059 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.2508, allocations: 6.25 kB / 0.9059 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008129/0.2517, allocations: 0.524 MB / 0.9064 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.2518, allocations: 0.6811 MB / 0.907 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.35e-05/0.2519, allocations: 8.172 kB / 0.9071 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.2519, allocations: 15.44 kB / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of SimCode: time 9.02e-07/0.2519, allocations: 0 / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01181/0.2637, allocations: 1.404 MB / 0.9084 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/0.2639, allocations: 206.3 kB / 0.9086 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/1.823, allocations: 0 / 0.9086 GB, free: 54.9 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)