Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.49/2.49, 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.001234/0.001234, allocations: 178 kB / 0.4901 GB, free: 2.27 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.536/1.536, allocations: 223.1 MB / 0.7992 GB, free: 14.66 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.0009335/0.0009336, allocations: 106.5 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003308, allocations: 12.19 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.314, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.4969, allocations: 150.1 MB / 1.376 GB, free: 3.301 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.4972, allocations: 67.97 kB / 1.376 GB, free: 3.234 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003669/0.5009, allocations: 1.174 MB / 1.377 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.335e-06/0.5009, allocations: 0 / 1.377 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.5009, allocations: 0 / 1.377 GB, free: 2.055 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005486/0.5015, allocations: 387.2 kB / 1.377 GB, free: 1.629 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.5015, allocations: 8.562 kB / 1.377 GB, free: 1.621 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.5016, allocations: 38.55 kB / 1.378 GB, free: 1.574 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.5016, allocations: 7.906 kB / 1.378 GB, free: 1.566 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.5018, allocations: 167 kB / 1.378 GB, free: 1.363 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.5018, allocations: 8 kB / 1.378 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.5018, allocations: 4 kB / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.5021, allocations: 89.58 kB / 1.378 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.5021, allocations: 4 kB / 1.378 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.5021, allocations: 11.94 kB / 1.378 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.5021, allocations: 0 / 1.378 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.5023, allocations: 67.94 kB / 1.378 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006205/0.503, allocations: 324.7 kB / 1.378 GB, free: 0.8086 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.5032, allocations: 90.53 kB / 1.378 GB, free: 0.7109 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.5032, allocations: 8.125 kB / 1.378 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.5035, allocations: 91.36 kB / 1.378 GB, free: 0.6016 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.5035, allocations: 4 kB / 1.378 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0005006/0.504, allocations: 177.8 kB / 1.379 GB, free: 428 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.5041, allocations: 71.42 kB / 1.379 GB, free: 344 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.809e-05/0.5041, allocations: 100.9 kB / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.5042, allocations: 33.69 kB / 1.379 GB, free: 196 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.5042, allocations: 96.22 kB / 1.379 GB, free: 92 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.5043, allocations: 23.7 kB / 1.379 GB, free: 68 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/0.5043, allocations: 0 / 1.379 GB, free: 68 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5044, allocations: 316.7 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.5046, allocations: 47.97 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.5047, allocations: 66.59 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.5048, allocations: 55.91 kB / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5048, allocations: 0 / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003295/0.5052, allocations: 149.5 kB / 1.379 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.5052, allocations: 4 kB / 1.379 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.5052, allocations: 4 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.5052, allocations: 4.062 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.5054, allocations: 19.98 kB / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.5054, allocations: 4 kB / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.413e-05/0.5055, allocations: 23.88 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.5055, allocations: 4 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.177e-05/0.5056, allocations: 122.6 kB / 1.38 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.5056, allocations: 11.91 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003562/0.506, allocations: 157.9 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.506, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.506, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.506, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005289/0.5066, allocations: 426.4 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5066, allocations: 0 / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.717e-05/0.5067, allocations: 11.98 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.5067, allocations: 8 kB / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.5067, allocations: 0 / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5067, allocations: 0 / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5067, allocations: 4.141 kB / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.5071, allocations: 251.3 kB / 1.38 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.5071, allocations: 85 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.393e-05/0.5072, allocations: 4.25 kB / 1.381 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.5073, allocations: 19.98 kB / 1.381 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.5074, allocations: 11.89 kB / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.5074, allocations: 3.984 kB / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.377e-05/0.5074, allocations: 83.28 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5074, allocations: 4 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002516/0.5077, allocations: 27.94 kB / 1.381 GB, free: 14.04 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007305/0.5084, allocations: 0.7827 MB / 1.381 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003317/0.5088, allocations: 107.9 kB / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5088, allocations: 0 / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.509, allocations: 56.03 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.5091, allocations: 12.67 kB / 1.382 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007409/0.5099, allocations: 0.6898 MB / 1.382 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.5102, allocations: 0.6887 MB / 1.383 GB, free: 11.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.174e-05/0.5102, allocations: 8.438 kB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.5103, allocations: 27.36 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of SimCode: time 3.01e-07/0.5103, allocations: 0 / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.5238, allocations: 1.73 MB / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.5241, allocations: 194.9 kB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.056, allocations: 0 / 1.385 GB, free: 9.742 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat