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 1.7/1.7, allocations: 285.4 MB / 298 MB, free: 5.938 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.001004/0.001004, allocations: 176.8 kB / 366.4 MB, free: 2.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.1 MB / 0.6248 GB, free: 7.727 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.0008035/0.0008036, allocations: 92.2 kB / 0.738 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.295e-05, allocations: 4 kB / 0.8584 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7907/0.7907, allocations: 115.3 MB / 0.971 GB, free: 77.91 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2402/1.031, allocations: 137.9 MB / 1.106 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/1.031, allocations: 67.95 kB / 1.106 GB, free: 13.84 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003791/1.035, allocations: 1.113 MB / 1.107 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.643e-06/1.035, allocations: 0.9062 kB / 1.107 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.437e-06/1.035, allocations: 0 / 1.107 GB, free: 12.75 MB / 0.7136 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.0005893/1.036, allocations: 374 kB / 1.107 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.059e-05/1.036, allocations: 8.031 kB / 1.107 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.802e-05/1.036, allocations: 35.38 kB / 1.107 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/1.036, allocations: 4 kB / 1.107 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/1.036, allocations: 171 kB / 1.107 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/1.036, allocations: 1.531 kB / 1.107 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/1.036, allocations: 8 kB / 1.107 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/1.036, allocations: 51.81 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/1.036, allocations: 1.188 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/1.036, allocations: 4 kB / 1.107 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/1.036, allocations: 1.219 kB / 1.107 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.081e-05/1.037, allocations: 19.98 kB / 1.107 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005814/1.037, allocations: 300 kB / 1.108 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/1.037, allocations: 57.72 kB / 1.108 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.168e-05/1.037, allocations: 19.64 kB / 1.108 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/1.037, allocations: 0 / 1.108 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001225/1.037, allocations: 59.41 kB / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/1.037, allocations: 0 / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.000201/1.038, allocations: 83.84 kB / 1.108 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/1.038, allocations: 52.22 kB / 1.108 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/1.038, allocations: 107.6 kB / 1.108 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/1.038, allocations: 25.7 kB / 1.108 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/1.038, allocations: 88.03 kB / 1.108 GB, free: 11.12 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/1.038, allocations: 22.66 kB / 1.108 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/1.038, allocations: 4 kB / 1.108 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001417/1.038, allocations: 314.8 kB / 1.109 GB, free: 10.78 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.472e-05/1.038, allocations: 12.88 kB / 1.109 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.183e-05/1.038, allocations: 49.09 kB / 1.109 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.288e-05/1.038, allocations: 25.09 kB / 1.109 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/1.038, allocations: 4 kB / 1.109 GB, free: 10.68 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001471/1.038, allocations: 93.47 kB / 1.109 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/1.039, allocations: 8 kB / 1.109 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.039, allocations: 0 / 1.109 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/1.039, allocations: 0 / 1.109 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/1.039, allocations: 23.92 kB / 1.109 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/1.039, allocations: 7.984 kB / 1.109 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.232e-05/1.039, allocations: 9.562 kB / 1.109 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/1.039, allocations: 7.953 kB / 1.109 GB, free: 10.53 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 7.537e-05/1.039, allocations: 110.1 kB / 1.109 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/1.039, allocations: 7.984 kB / 1.109 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001808/1.039, allocations: 86.2 kB / 1.109 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/1.039, allocations: 7.969 kB / 1.109 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/1.039, allocations: 0 / 1.109 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/1.039, allocations: 0 / 1.109 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003054/1.039, allocations: 334.5 kB / 1.109 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/1.039, allocations: 4 kB / 1.109 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/1.04, allocations: 8 kB / 1.109 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/1.04, allocations: 7.922 kB / 1.109 GB, free: 9.906 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/1.04, allocations: 7.781 kB / 1.109 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/1.04, allocations: 0 / 1.109 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/1.04, allocations: 0 / 1.109 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/1.04, allocations: 181.5 kB / 1.109 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.224e-05/1.04, allocations: 84.95 kB / 1.11 GB, free: 9.609 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/1.04, allocations: 3.984 kB / 1.11 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/1.04, allocations: 8 kB / 1.11 GB, free: 9.598 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/1.04, allocations: 11.92 kB / 1.11 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/1.04, allocations: 8 kB / 1.11 GB, free: 9.578 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.314e-05/1.04, allocations: 84.36 kB / 1.11 GB, free: 9.496 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/1.04, allocations: 4 kB / 1.11 GB, free: 9.492 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002272/1.04, allocations: 23.98 kB / 1.11 GB, free: 9.469 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.0005139/1.041, allocations: 0.7163 MB / 1.11 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001217/1.041, allocations: 39.94 kB / 1.11 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/1.041, allocations: 256 / 1.11 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.047e-05/1.041, allocations: 27.94 kB / 1.11 GB, free: 8.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/1.041, allocations: 11.98 kB / 1.11 GB, free: 8.648 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/1.042, allocations: 121.3 kB / 1.111 GB, free: 8.492 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/1.042, allocations: 0.6848 MB / 1.111 GB, free: 7.781 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.381e-05/1.042, allocations: 8.172 kB / 1.111 GB, free: 7.773 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/1.042, allocations: 17.12 kB / 1.111 GB, free: 7.758 MB / 0.7136 GB Notification: Performance of SimCode: time 3.11e-07/1.042, allocations: 8 kB / 1.111 GB, free: 7.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01192/1.054, allocations: 1.531 MB / 1.113 GB, free: 6.414 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/1.054, allocations: 173.5 kB / 1.113 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/2.68, allocations: 1.875 kB / 1.113 GB, free: 6.191 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)