Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.245/2.245, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 195.1 kB / 0.4901 GB, free: 2.238 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 223.1 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008934/0.0008934, allocations: 102.1 kB / 0.9396 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003677, allocations: 11.34 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3427, allocations: 143 MB / 1.229 GB, free: 85.39 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1917/0.5345, allocations: 150 MB / 1.376 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.5348, allocations: 67.97 kB / 1.376 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.003805/0.5386, allocations: 1.128 MB / 1.377 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.854e-06/0.5387, allocations: 0 / 1.377 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.5387, allocations: 0 / 1.377 GB, free: 13.98 MB / 0.8855 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.000601/0.5393, allocations: 367.2 kB / 1.377 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.5394, allocations: 16.56 kB / 1.377 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.5395, allocations: 34.5 kB / 1.377 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.5395, allocations: 15.86 kB / 1.377 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.5397, allocations: 167 kB / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.5397, allocations: 4 kB / 1.378 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.5398, allocations: 0 / 1.378 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.54, allocations: 73.64 kB / 1.378 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.54, allocations: 4 kB / 1.378 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.5401, allocations: 4 kB / 1.378 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.5401, allocations: 4 kB / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.5403, allocations: 55.89 kB / 1.378 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007482/0.5411, allocations: 296.8 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000184/0.5413, allocations: 62.55 kB / 1.378 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.5413, allocations: 7.875 kB / 1.378 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.5415, allocations: 87.44 kB / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.824e-06/0.5416, allocations: 0 / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004649/0.542, allocations: 145.8 kB / 1.378 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.5421, allocations: 55.41 kB / 1.378 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.714e-05/0.5422, allocations: 93 kB / 1.378 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.5422, allocations: 25.7 kB / 1.378 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.5423, allocations: 92.12 kB / 1.378 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.5423, allocations: 23.66 kB / 1.379 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.5423, allocations: 4 kB / 1.379 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5425, allocations: 314.8 kB / 1.379 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.5426, allocations: 31.98 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.5427, allocations: 68.2 kB / 1.379 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.5428, allocations: 35.97 kB / 1.379 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.5428, allocations: 0 / 1.379 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003076/0.5431, allocations: 129.5 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.5432, allocations: 4 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.5432, allocations: 80 / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.5432, allocations: 4 kB / 1.379 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.5433, allocations: 24.11 kB / 1.379 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.5434, allocations: 7.938 kB / 1.379 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.5435, allocations: 12 kB / 1.379 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.5435, allocations: 7.984 kB / 1.379 GB, free: 11.51 MB / 0.8855 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.0001129/0.5436, allocations: 119.6 kB / 1.379 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.5436, allocations: 3.953 kB / 1.379 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003191/0.544, allocations: 122 kB / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.544, allocations: 0 / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.544, allocations: 0 / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.544, allocations: 3.953 kB / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005065/0.5445, allocations: 370.5 kB / 1.38 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.5445, allocations: 3.984 kB / 1.38 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.289e-05/0.5446, allocations: 12 kB / 1.38 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.5446, allocations: 0 / 1.38 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.5446, allocations: 4 kB / 1.38 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.5446, allocations: 7.938 kB / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5447, allocations: 4 kB / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.545, allocations: 207.5 kB / 1.38 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.323e-05/0.5451, allocations: 85.09 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.5451, allocations: 12.19 kB / 1.38 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.5452, allocations: 11.98 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.5453, allocations: 11.95 kB / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.5453, allocations: 0 / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.297e-05/0.5453, allocations: 91.27 kB / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5453, allocations: 0 / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002469/0.5456, allocations: 19.94 kB / 1.38 GB, free: 10.34 MB / 0.8855 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.0006642/0.5463, allocations: 0.7522 MB / 1.381 GB, free: 9.559 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002762/0.5466, allocations: 83.88 kB / 1.381 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5466, allocations: 0 / 1.381 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.5467, allocations: 40.22 kB / 1.381 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000182/0.5469, allocations: 11.94 kB / 1.381 GB, free: 9.426 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009312/0.5478, allocations: 0.9651 MB / 1.382 GB, free: 8.387 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.5481, allocations: 0.6848 MB / 1.383 GB, free: 7.676 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.156e-05/0.5482, allocations: 12.17 kB / 1.383 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.356e-05/0.5482, allocations: 19.44 kB / 1.383 GB, free: 7.648 MB / 0.8855 GB Notification: Performance of SimCode: time 3.5e-07/0.5483, allocations: 0 / 1.383 GB, free: 7.648 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.5623, allocations: 1.506 MB / 1.384 GB, free: 6.293 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/0.5625, allocations: 202 kB / 1.384 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.537/2.1, allocations: 0 / 1.384 GB, free: 6.043 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat does not exist to compare? outputFormat=mat