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.438/2.438, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.001258/0.001258, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.000929/0.0009288, allocations: 95.89 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.282e-05/3.292e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2635, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9034/1.167, allocations: 150 MB / 1.365 GB, free: 3.996 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/1.167, allocations: 69.8 kB / 1.365 GB, free: 3.961 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003453/1.171, allocations: 1.123 MB / 1.366 GB, free: 2.961 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.462e-06/1.171, allocations: 0 / 1.366 GB, free: 2.961 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.503e-06/1.171, allocations: 0 / 1.366 GB, free: 2.961 MB / 0.823 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.0004777/1.171, allocations: 370.4 kB / 1.367 GB, free: 2.559 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.171, allocations: 8.031 kB / 1.367 GB, free: 2.551 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/1.171, allocations: 38.23 kB / 1.367 GB, free: 2.508 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/1.171, allocations: 15.86 kB / 1.367 GB, free: 2.492 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/1.172, allocations: 163.1 kB / 1.367 GB, free: 2.293 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/1.172, allocations: 7.172 kB / 1.367 GB, free: 2.289 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/1.172, allocations: 4 kB / 1.367 GB, free: 2.285 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/1.172, allocations: 54.2 kB / 1.367 GB, free: 2.234 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/1.172, allocations: 0 / 1.367 GB, free: 2.234 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/1.172, allocations: 0 / 1.367 GB, free: 2.234 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/1.172, allocations: 0 / 1.367 GB, free: 2.234 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.896e-05/1.172, allocations: 23.12 kB / 1.367 GB, free: 2.219 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/1.172, allocations: 302.4 kB / 1.367 GB, free: 1.891 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.874e-05/1.173, allocations: 43.27 kB / 1.367 GB, free: 1.848 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.829e-05/1.173, allocations: 18.11 kB / 1.367 GB, free: 1.832 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/1.173, allocations: 9.953 kB / 1.367 GB, free: 1.824 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/1.173, allocations: 63.72 kB / 1.368 GB, free: 1.758 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/1.173, allocations: 0 / 1.368 GB, free: 1.758 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002059/1.173, allocations: 84.56 kB / 1.368 GB, free: 1.68 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/1.173, allocations: 51.41 kB / 1.368 GB, free: 1.617 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.794e-05/1.173, allocations: 100.9 kB / 1.368 GB, free: 1.516 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/1.173, allocations: 25.7 kB / 1.368 GB, free: 1.484 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/1.173, allocations: 90.86 kB / 1.368 GB, free: 1.395 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/1.173, allocations: 18.94 kB / 1.368 GB, free: 1.379 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/1.173, allocations: 0 / 1.368 GB, free: 1.379 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001075/1.173, allocations: 322.6 kB / 1.368 GB, free: 1.059 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.493e-05/1.173, allocations: 11.62 kB / 1.368 GB, free: 1.051 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.125e-05/1.173, allocations: 50.86 kB / 1.368 GB, free: 0.9922 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.166e-05/1.173, allocations: 26.8 kB / 1.368 GB, free: 0.9727 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/1.173, allocations: 0 / 1.368 GB, free: 0.9727 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001489/1.174, allocations: 92.14 kB / 1.368 GB, free: 0.8867 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.174, allocations: 5.406 kB / 1.368 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.174, allocations: 4 kB / 1.368 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/1.174, allocations: 3.938 kB / 1.368 GB, free: 0.875 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/1.174, allocations: 27.3 kB / 1.368 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/1.174, allocations: 3.953 kB / 1.368 GB, free: 0.8477 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.696e-05/1.174, allocations: 11.98 kB / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/1.174, allocations: 4 kB / 1.368 GB, free: 0.832 MB / 0.823 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.126e-05/1.174, allocations: 112.4 kB / 1.369 GB, free: 0.7188 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.42e-05/1.174, allocations: 4.875 kB / 1.369 GB, free: 0.7148 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/1.174, allocations: 85.84 kB / 1.369 GB, free: 0.6367 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/1.174, allocations: 8.031 kB / 1.369 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/1.174, allocations: 0 / 1.369 GB, free: 0.6289 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/1.174, allocations: 3.953 kB / 1.369 GB, free: 0.625 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/1.175, allocations: 333.3 kB / 1.369 GB, free: 272 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.175, allocations: 4 kB / 1.369 GB, free: 268 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.575e-05/1.175, allocations: 12.23 kB / 1.369 GB, free: 256 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.175, allocations: 0 / 1.369 GB, free: 256 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/1.175, allocations: 4 kB / 1.369 GB, free: 252 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/1.175, allocations: 11.95 kB / 1.369 GB, free: 240 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/1.175, allocations: 0 / 1.369 GB, free: 240 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/1.175, allocations: 176.5 kB / 1.369 GB, free: 60 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/1.175, allocations: 84.95 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/1.175, allocations: 0 / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/1.175, allocations: 15.61 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/1.175, allocations: 15.94 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/1.175, allocations: 4 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.578e-05/1.175, allocations: 82.22 kB / 1.369 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.175, allocations: 0 / 1.369 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002358/1.175, allocations: 19.81 kB / 1.369 GB, free: 15.83 MB / 0.8386 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.0005181/1.176, allocations: 0.7105 MB / 1.37 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001252/1.176, allocations: 50.09 kB / 1.37 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.176, allocations: 0 / 1.37 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.787e-05/1.176, allocations: 19.44 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/1.176, allocations: 12.72 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/1.177, allocations: 132.6 kB / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/1.177, allocations: 0.6967 MB / 1.371 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.385e-05/1.177, allocations: 4.188 kB / 1.371 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/1.177, allocations: 14.73 kB / 1.371 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of SimCode: time 4.21e-07/1.177, allocations: 0 / 1.371 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01337/1.19, allocations: 1.52 MB / 1.372 GB, free: 12.78 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/1.191, allocations: 164.3 kB / 1.373 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.503/2.694, allocations: 0 / 1.373 GB, free: 12.56 MB / 0.8386 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