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 2.818/2.818, allocations: 285.6 MB / 293.1 MB, free: 10.19 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.001675/0.001674, allocations: 168.9 kB / 361.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.31/3.31, allocations: 205.2 MB / 0.62 GB, free: 11.6 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.001337/0.001337, allocations: 92.64 kB / 0.733 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.144e-05, allocations: 4 kB / 0.8518 GB, free: 2.59 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6385/0.6386, allocations: 115.3 MB / 0.9645 GB, free: 79.11 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.8235, allocations: 137.2 MB / 1.098 GB, free: 2.48 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.8238, allocations: 67.97 kB / 1.099 GB, free: 2.414 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0034/0.8272, allocations: 1.101 MB / 1.1 GB, free: 1.34 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8272, allocations: 0 / 1.1 GB, free: 1.34 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.8273, allocations: 0.625 kB / 1.1 GB, free: 1.34 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.0004594/0.8277, allocations: 380.6 kB / 1.1 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.8278, allocations: 12.03 kB / 1.1 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.369e-05/0.8278, allocations: 1.562 kB / 1.1 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.8279, allocations: 171 kB / 1.1 GB, free: 0.707 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.828, allocations: 1.406 kB / 1.1 GB, free: 0.707 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.828, allocations: 4 kB / 1.1 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.444e-05/0.8281, allocations: 12.94 kB / 1.1 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.652e-05/0.8281, allocations: 53.28 kB / 1.1 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.8282, allocations: 0 / 1.1 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.8282, allocations: 1.719 kB / 1.1 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.8282, allocations: 4 kB / 1.1 GB, free: 0.6328 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004718/0.8287, allocations: 277.8 kB / 1.1 GB, free: 336 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.167e-05/0.8288, allocations: 47.78 kB / 1.101 GB, free: 280 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.8288, allocations: 16.98 kB / 1.101 GB, free: 260 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.8288, allocations: 0 / 1.101 GB, free: 260 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.8289, allocations: 61.06 kB / 1.101 GB, free: 188 kB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.8289, allocations: 0.9375 kB / 1.101 GB, free: 188 kB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001987/0.8291, allocations: 75.41 kB / 1.101 GB, free: 108 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.8292, allocations: 52.75 kB / 1.101 GB, free: 44 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.839e-05/0.8293, allocations: 101 kB / 1.101 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.8293, allocations: 25.7 kB / 1.101 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.8294, allocations: 88.92 kB / 1.101 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.8294, allocations: 15.75 kB / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.8294, allocations: 4.5 kB / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.8295, allocations: 322.8 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.069e-05/0.8295, allocations: 15.59 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.035e-05/0.8296, allocations: 49.89 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.8298, allocations: 27.91 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.8298, allocations: 6.156 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002059/0.83, allocations: 93.5 kB / 1.101 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.83, allocations: 4 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.83, allocations: 4.125 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.83, allocations: 6.203 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.8302, allocations: 19.98 kB / 1.101 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.8302, allocations: 3.938 kB / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.8303, allocations: 11.98 kB / 1.102 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.8303, allocations: 4 kB / 1.102 GB, free: 15.23 MB / 0.7136 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 8.072e-05/0.8304, allocations: 110.2 kB / 1.102 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001026/0.8305, allocations: 69.69 kB / 1.102 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.8305, allocations: 7.906 kB / 1.102 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.8306, allocations: 86.22 kB / 1.102 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.8307, allocations: 0 / 1.102 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.8307, allocations: 0 / 1.102 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.8307, allocations: 0 / 1.102 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002664/0.8309, allocations: 311.8 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.831, allocations: 0 / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.985e-05/0.831, allocations: 23.92 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.8311, allocations: 0 / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.8311, allocations: 0 / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.8311, allocations: 0 / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.8311, allocations: 0 / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.8312, allocations: 171.4 kB / 1.102 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.8313, allocations: 83.02 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.8313, allocations: 3.984 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.846e-05/0.8314, allocations: 12 kB / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.8315, allocations: 11.92 kB / 1.102 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.8315, allocations: 0 / 1.102 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.591e-05/0.8315, allocations: 87.28 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8315, allocations: 0 / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002438/0.8318, allocations: 27.84 kB / 1.102 GB, free: 14.15 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.0004707/0.8323, allocations: 0.7186 MB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.8324, allocations: 43.92 kB / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.8324, allocations: 0 / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.668e-05/0.8324, allocations: 20 kB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.8326, allocations: 3.984 kB / 1.103 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003886/0.833, allocations: 124.3 kB / 1.103 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.8333, allocations: 0.6851 MB / 1.104 GB, free: 12.47 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.8334, allocations: 8.172 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.8334, allocations: 11.44 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of SimCode: time 4.5e-07/0.8334, allocations: 5.406 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.8523, allocations: 1.198 MB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/0.8527, allocations: 157.3 kB / 1.105 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.441/2.293, allocations: 1.875 kB / 1.105 GB, free: 11.12 MB / 0.7136 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)