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.49/2.49, allocations: 284.9 MB / 292.4 MB, free: 10.5 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.001521/0.00152, allocations: 196.7 kB / 360.6 MB, free: 7.258 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.049/2.049, allocations: 205.2 MB / 0.6191 GB, free: 12.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 101.4 kB / 0.7321 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.511e-05, allocations: 4 kB / 0.8509 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8834/0.8834, allocations: 115.2 MB / 0.9634 GB, free: 78.65 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2463/1.13, allocations: 137.1 MB / 1.097 GB, free: 3.449 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/1.13, allocations: 75.55 kB / 1.097 GB, free: 3.379 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005008/1.135, allocations: 1.104 MB / 1.098 GB, free: 2.301 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.893e-06/1.135, allocations: 7.141 kB / 1.098 GB, free: 2.301 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.234e-06/1.135, allocations: 0.5 kB / 1.098 GB, free: 2.301 MB / 0.698 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.0006249/1.136, allocations: 372.2 kB / 1.099 GB, free: 1.895 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/1.136, allocations: 8.531 kB / 1.099 GB, free: 1.887 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/1.136, allocations: 5.734 kB / 1.099 GB, free: 1.883 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/1.136, allocations: 167 kB / 1.099 GB, free: 1.68 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/1.136, allocations: 5.422 kB / 1.099 GB, free: 1.676 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/1.136, allocations: 4 kB / 1.099 GB, free: 1.672 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001092/1.136, allocations: 12 kB / 1.099 GB, free: 1.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/1.136, allocations: 50.22 kB / 1.099 GB, free: 1.605 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/1.136, allocations: 0.5938 kB / 1.099 GB, free: 1.605 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.136, allocations: 5.062 kB / 1.099 GB, free: 1.602 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/1.136, allocations: 4.594 kB / 1.099 GB, free: 1.598 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/1.137, allocations: 280.6 kB / 1.099 GB, free: 1.289 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/1.137, allocations: 38.58 kB / 1.099 GB, free: 1.242 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.417e-05/1.137, allocations: 18.98 kB / 1.099 GB, free: 1.223 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/1.137, allocations: 4.609 kB / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/1.138, allocations: 60.72 kB / 1.099 GB, free: 1.148 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.545e-06/1.138, allocations: 3.938 kB / 1.099 GB, free: 1.145 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0002434/1.138, allocations: 66.47 kB / 1.099 GB, free: 1.074 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/1.138, allocations: 51.41 kB / 1.1 GB, free: 1.012 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.785e-05/1.138, allocations: 104.9 kB / 1.1 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/1.138, allocations: 26.39 kB / 1.1 GB, free: 0.875 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/1.138, allocations: 92.86 kB / 1.1 GB, free: 0.7812 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/1.138, allocations: 23.81 kB / 1.1 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-06/1.138, allocations: 0 / 1.1 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.138, allocations: 321.3 kB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.187e-05/1.138, allocations: 12 kB / 1.1 GB, free: 436 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.501e-05/1.138, allocations: 46.98 kB / 1.1 GB, free: 376 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/1.139, allocations: 29.56 kB / 1.1 GB, free: 348 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/1.139, allocations: 1.281 kB / 1.1 GB, free: 348 kB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003209/1.139, allocations: 97.52 kB / 1.1 GB, free: 244 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/1.139, allocations: 4.781 kB / 1.1 GB, free: 240 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.139, allocations: 3.984 kB / 1.1 GB, free: 236 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/1.139, allocations: 4 kB / 1.1 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/1.139, allocations: 20.73 kB / 1.1 GB, free: 212 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/1.139, allocations: 3.938 kB / 1.1 GB, free: 208 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/1.139, allocations: 8 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/1.139, allocations: 4.125 kB / 1.1 GB, free: 196 kB / 0.698 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 () * 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 0.0001025/1.14, allocations: 125.5 kB / 1.1 GB, free: 68 kB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001844/1.14, allocations: 65.73 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/1.14, allocations: 7.906 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/1.14, allocations: 84.61 kB / 1.101 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/1.14, allocations: 3.281 kB / 1.101 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.14, allocations: 0 / 1.101 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/1.14, allocations: 3.953 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/1.141, allocations: 307.1 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/1.141, allocations: 3.938 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/1.141, allocations: 12 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-06/1.141, allocations: 0 / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/1.141, allocations: 3.984 kB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/1.141, allocations: 0 / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.141, allocations: 3.953 kB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/1.141, allocations: 175.4 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/1.141, allocations: 81.05 kB / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/1.141, allocations: 0 / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/1.141, allocations: 13.98 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/1.141, allocations: 7.984 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/1.141, allocations: 3.953 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.214e-05/1.141, allocations: 87.22 kB / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.51e-07/1.141, allocations: 4 kB / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003584/1.142, allocations: 23.91 kB / 1.101 GB, free: 15.11 MB / 0.7136 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) * 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.0006243/1.142, allocations: 0.7099 MB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001847/1.143, allocations: 39.94 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/1.143, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.006e-05/1.143, allocations: 16.25 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/1.143, allocations: 15.91 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005435/1.144, allocations: 117.3 kB / 1.102 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/1.144, allocations: 0.6846 MB / 1.103 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.463e-05/1.144, allocations: 4.188 kB / 1.103 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.175e-05/1.144, allocations: 23.42 kB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of SimCode: time 1.242e-06/1.144, allocations: 0 / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03795/1.182, allocations: 1.202 MB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002692/1.182, allocations: 149.8 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/3.58, allocations: 0 / 1.104 GB, free: 12.07 MB / 0.7136 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)