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.491/1.491, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001171/0.001171, allocations: 186.5 kB / 326.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.4 MB / 0.5775 GB, free: 20.22 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.0009707/0.0009706, allocations: 95.27 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.00032, allocations: 8.625 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 106.3 MB / 0.9002 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.4189, allocations: 131.7 MB / 1.029 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4192, allocations: 75.89 kB / 1.029 GB, free: 11.86 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002469/0.4217, allocations: 0.8879 MB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.834e-06/0.4217, allocations: 0 / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.4217, allocations: 0 / 1.03 GB, free: 10.96 MB / 0.6823 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.0004557/0.4222, allocations: 379.1 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4222, allocations: 12.03 kB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.4223, allocations: 34.5 kB / 1.03 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.4223, allocations: 8 kB / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.4224, allocations: 171 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.4224, allocations: 4 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.4225, allocations: 0 / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.4227, allocations: 73.66 kB / 1.03 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.4227, allocations: 0 / 1.03 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.4227, allocations: 0 / 1.03 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4227, allocations: 4 kB / 1.03 GB, free: 10.19 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.4229, allocations: 55.89 kB / 1.03 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/0.4234, allocations: 300.7 kB / 1.031 GB, free: 9.789 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.4236, allocations: 62.55 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.4236, allocations: 8 kB / 1.031 GB, free: 9.711 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.4238, allocations: 75.44 kB / 1.031 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.542e-06/0.4238, allocations: 4 kB / 1.031 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004235/0.4242, allocations: 137.6 kB / 1.031 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.4243, allocations: 59.42 kB / 1.031 GB, free: 9.41 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.4244, allocations: 101 kB / 1.031 GB, free: 9.305 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.4244, allocations: 25.7 kB / 1.031 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.4245, allocations: 96.05 kB / 1.031 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.4245, allocations: 15.73 kB / 1.031 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.4245, allocations: 8 kB / 1.031 GB, free: 9.152 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4246, allocations: 310.8 kB / 1.032 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.4247, allocations: 31.97 kB / 1.032 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.4249, allocations: 64.22 kB / 1.032 GB, free: 8.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.425, allocations: 39.97 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.425, allocations: 4.188 kB / 1.032 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002719/0.4253, allocations: 125.4 kB / 1.032 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.4253, allocations: 7.938 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.4253, allocations: 4 kB / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.4253, allocations: 4.125 kB / 1.032 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.4254, allocations: 23.92 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4255, allocations: 0 / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.229e-05/0.4255, allocations: 11.95 kB / 1.032 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.4256, allocations: 4 kB / 1.032 GB, free: 8.504 MB / 0.6823 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 9.453e-05/0.4257, allocations: 133.4 kB / 1.032 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.4257, allocations: 4 kB / 1.032 GB, free: 8.363 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.426, allocations: 117.9 kB / 1.032 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.426, allocations: 0 / 1.032 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.426, allocations: 4 kB / 1.032 GB, free: 8.242 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.426, allocations: 0 / 1.032 GB, free: 8.242 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/0.4265, allocations: 370.8 kB / 1.032 GB, free: 7.824 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4265, allocations: 0 / 1.032 GB, free: 7.824 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.005e-05/0.4266, allocations: 15.98 kB / 1.032 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.4266, allocations: 0 / 1.032 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.4266, allocations: 4 kB / 1.032 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.4266, allocations: 256 / 1.032 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4266, allocations: 8.016 kB / 1.032 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.4269, allocations: 211.4 kB / 1.033 GB, free: 7.574 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.427, allocations: 85.02 kB / 1.033 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.427, allocations: 3.984 kB / 1.033 GB, free: 7.469 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.4271, allocations: 8 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.4272, allocations: 15.97 kB / 1.033 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4272, allocations: 7.953 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.349e-05/0.4272, allocations: 83.27 kB / 1.033 GB, free: 7.355 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4273, allocations: 0 / 1.033 GB, free: 7.355 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002163/0.4275, allocations: 19.94 kB / 1.033 GB, free: 7.336 MB / 0.6823 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.000598/0.4281, allocations: 0.7359 MB / 1.034 GB, free: 6.57 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.4283, allocations: 75.89 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4284, allocations: 4 kB / 1.034 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.4285, allocations: 40.22 kB / 1.034 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.4287, allocations: 10.41 kB / 1.034 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007375/0.4294, allocations: 0.9725 MB / 1.035 GB, free: 5.402 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.4297, allocations: 0.6926 MB / 1.035 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.132e-05/0.4297, allocations: 4.188 kB / 1.035 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/0.4298, allocations: 15.38 kB / 1.035 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of SimCode: time 4.01e-07/0.4298, allocations: 0 / 1.035 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01048/0.4403, allocations: 1.372 MB / 1.037 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.4405, allocations: 200.2 kB / 1.037 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.447/1.888, allocations: 0 / 1.037 GB, free: 3.219 MB / 0.6823 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)