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.755/1.755, allocations: 288.2 MB / 303.2 MB, free: 8.156 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.0009712/0.000971, allocations: 186.5 kB / 371.8 MB, free: 10.28 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.636/1.636, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.000911/0.000911, allocations: 95.62 kB / 0.7439 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004125/0.0004125, allocations: 12.97 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2688, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8733/1.142, allocations: 138 MB / 1.114 GB, free: 16.34 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/1.143, allocations: 72.72 kB / 1.114 GB, free: 16.34 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004473/1.147, allocations: 1.107 MB / 1.115 GB, free: 32 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.646e-06/1.147, allocations: 0 / 1.115 GB, free: 32 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.065e-05/1.147, allocations: 0 / 1.115 GB, free: 32 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.0005847/1.148, allocations: 381.4 kB / 1.116 GB, free: 31.62 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/1.148, allocations: 11.77 kB / 1.116 GB, free: 31.62 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.692e-05/1.148, allocations: 41.09 kB / 1.116 GB, free: 31.58 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/1.148, allocations: 0 / 1.116 GB, free: 31.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/1.148, allocations: 174.7 kB / 1.116 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/1.148, allocations: 0 / 1.116 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/1.148, allocations: 7.656 kB / 1.116 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/1.148, allocations: 76.66 kB / 1.116 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/1.148, allocations: 0 / 1.116 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/1.148, allocations: 0 / 1.116 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/1.148, allocations: 3.844 kB / 1.116 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/1.149, allocations: 49.81 kB / 1.116 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/1.149, allocations: 303.4 kB / 1.116 GB, free: 31.06 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/1.15, allocations: 64.62 kB / 1.116 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/1.15, allocations: 3.812 kB / 1.116 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/1.15, allocations: 76.59 kB / 1.117 GB, free: 30.99 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/1.15, allocations: 0 / 1.117 GB, free: 30.99 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0005269/1.15, allocations: 145.6 kB / 1.117 GB, free: 30.95 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/1.15, allocations: 55.08 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/1.151, allocations: 108.7 kB / 1.117 GB, free: 30.79 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/1.151, allocations: 25.7 kB / 1.117 GB, free: 30.75 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/1.151, allocations: 91.45 kB / 1.117 GB, free: 30.67 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/1.151, allocations: 15.91 kB / 1.117 GB, free: 30.66 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/1.151, allocations: 0 / 1.117 GB, free: 30.66 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001941/1.151, allocations: 324.5 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/1.151, allocations: 33.78 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/1.151, allocations: 71.22 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/1.151, allocations: 33.47 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/1.151, allocations: 7.844 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002982/1.152, allocations: 117.3 kB / 1.118 GB, free: 30.25 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/1.152, allocations: 11.62 kB / 1.118 GB, free: 30.25 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/1.152, allocations: 0 / 1.118 GB, free: 30.25 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/1.152, allocations: 7.969 kB / 1.118 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/1.152, allocations: 24.44 kB / 1.118 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.152, allocations: 0 / 1.118 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.74e-05/1.152, allocations: 10.44 kB / 1.118 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/1.152, allocations: 3.969 kB / 1.118 GB, free: 30.24 MB / 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 () * 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 0.0001345/1.152, allocations: 120.6 kB / 1.118 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/1.152, allocations: 15.38 kB / 1.118 GB, free: 30.11 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/1.153, allocations: 122.4 kB / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.153, allocations: 0 / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/1.153, allocations: 0 / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/1.153, allocations: 48 / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000575/1.153, allocations: 379.7 kB / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.153, allocations: 0 / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.54e-05/1.153, allocations: 14.84 kB / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/1.153, allocations: 0 / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/1.153, allocations: 4 kB / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/1.153, allocations: 0 / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.153, allocations: 3.812 kB / 1.118 GB, free: 29.76 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/1.154, allocations: 210.1 kB / 1.118 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/1.154, allocations: 84.86 kB / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/1.154, allocations: 6.594 kB / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/1.154, allocations: 10.55 kB / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/1.154, allocations: 7.094 kB / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/1.154, allocations: 0 / 1.118 GB, free: 29.52 MB / 0.698 GB Notification: Performance of sorting global known variables: time 7.144e-05/1.154, allocations: 86.06 kB / 1.119 GB, free: 29.45 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.154, allocations: 0 / 1.119 GB, free: 29.45 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002883/1.154, allocations: 29.8 kB / 1.119 GB, free: 29.43 MB / 0.698 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.000759/1.155, allocations: 0.7455 MB / 1.119 GB, free: 28.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002683/1.155, allocations: 80.97 kB / 1.119 GB, free: 28.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.155, allocations: 192 / 1.119 GB, free: 28.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/1.156, allocations: 46.56 kB / 1.119 GB, free: 28.76 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/1.156, allocations: 14.5 kB / 1.119 GB, free: 28.75 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009094/1.157, allocations: 0.9588 MB / 1.12 GB, free: 27.79 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/1.157, allocations: 0.6953 MB / 1.121 GB, free: 27.09 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.043e-05/1.157, allocations: 7.141 kB / 1.121 GB, free: 27.09 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.128e-05/1.157, allocations: 17.62 kB / 1.121 GB, free: 27.08 MB / 0.698 GB Notification: Performance of SimCode: time 5.01e-07/1.157, allocations: 0 / 1.121 GB, free: 27.08 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/1.17, allocations: 1.524 MB / 1.123 GB, free: 26.91 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/1.17, allocations: 202.4 kB / 1.123 GB, free: 26.67 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.555/2.725, allocations: 0 / 1.123 GB, free: 26.67 MB / 0.698 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)