Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.495/2.495, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001021/0.001021, allocations: 172 kB / 0.4901 GB, free: 2.281 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.511/1.511, allocations: 223.1 MB / 0.7992 GB, free: 14.77 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.0008833/0.0008833, allocations: 104.2 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004187, allocations: 11.47 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2979, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.4834, allocations: 150 MB / 1.376 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.4837, allocations: 71.95 kB / 1.376 GB, free: 3.473 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003486/0.4873, allocations: 1.049 MB / 1.377 GB, free: 2.422 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4873, allocations: 4 kB / 1.377 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.4873, allocations: 0 / 1.377 GB, free: 2.418 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005283/0.4878, allocations: 367.2 kB / 1.377 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.4879, allocations: 8.562 kB / 1.377 GB, free: 2.004 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.267e-05/0.488, allocations: 38.48 kB / 1.377 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.488, allocations: 4 kB / 1.377 GB, free: 1.953 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.4882, allocations: 170.9 kB / 1.377 GB, free: 1.746 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.4882, allocations: 4 kB / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.4882, allocations: 4 kB / 1.377 GB, free: 1.738 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.4885, allocations: 61.67 kB / 1.377 GB, free: 1.672 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.4885, allocations: 0 / 1.377 GB, free: 1.672 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.4885, allocations: 8 kB / 1.377 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4885, allocations: 0 / 1.377 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.4887, allocations: 51.95 kB / 1.378 GB, free: 1.613 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.4892, allocations: 280.8 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.4894, allocations: 50.56 kB / 1.378 GB, free: 1.23 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.4894, allocations: 8.062 kB / 1.378 GB, free: 1.223 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.4896, allocations: 71.39 kB / 1.378 GB, free: 1.141 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=5): time 1.502e-06/0.4897, allocations: 7.875 kB / 1.378 GB, free: 1.133 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.0004384/0.4901, allocations: 125.5 kB / 1.378 GB, free: 1.004 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.4902, allocations: 59.34 kB / 1.378 GB, free: 0.9336 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.5e-05/0.4902, allocations: 101 kB / 1.378 GB, free: 0.8281 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.4903, allocations: 33.7 kB / 1.378 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.4903, allocations: 88.12 kB / 1.378 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.4904, allocations: 11.81 kB / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-06/0.4904, allocations: 0 / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4905, allocations: 318.8 kB / 1.379 GB, free: 376 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.946e-05/0.4906, allocations: 25.75 kB / 1.379 GB, free: 352 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.4907, allocations: 59.41 kB / 1.379 GB, free: 280 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.4908, allocations: 31.92 kB / 1.379 GB, free: 248 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4909, allocations: 4 kB / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000261/0.4911, allocations: 101.6 kB / 1.379 GB, free: 136 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4912, allocations: 8 kB / 1.379 GB, free: 128 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4912, allocations: 128 / 1.379 GB, free: 128 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.4912, allocations: 4 kB / 1.379 GB, free: 124 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.4913, allocations: 15.98 kB / 1.379 GB, free: 108 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4913, allocations: 11.92 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.569e-05/0.4914, allocations: 7.953 kB / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.4914, allocations: 8 kB / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.00011/0.4915, allocations: 109.8 kB / 1.379 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.4916, allocations: 11.89 kB / 1.379 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/0.4919, allocations: 105.6 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.4919, allocations: 3.984 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4919, allocations: 0 / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4919, allocations: 0 / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.4923, allocations: 354.8 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.4923, allocations: 4 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.604e-05/0.4924, allocations: 11.98 kB / 1.379 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.4924, allocations: 4 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.4924, allocations: 4 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4925, allocations: 0 / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4925, allocations: 3.953 kB / 1.379 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.4927, allocations: 195.4 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.4928, allocations: 77.11 kB / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.4928, allocations: 3.938 kB / 1.38 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.791e-05/0.4929, allocations: 11.98 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.493, allocations: 19.88 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.493, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.162e-05/0.493, allocations: 79.28 kB / 1.38 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.493, allocations: 0 / 1.38 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002479/0.4933, allocations: 24 kB / 1.38 GB, free: 14.97 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007038/0.494, allocations: 0.7326 MB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002578/0.4943, allocations: 71.94 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/0.4943, allocations: 0 / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.4944, allocations: 36.17 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.4946, allocations: 4 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008029/0.4954, allocations: 0.8093 MB / 1.381 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.4957, allocations: 0.6809 MB / 1.382 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.832e-05/0.4958, allocations: 15.92 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.4958, allocations: 15.44 kB / 1.382 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of SimCode: time 2.81e-07/0.4958, allocations: 0 / 1.382 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01584/0.5117, allocations: 1.4 MB / 1.384 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002971/0.512, allocations: 191.9 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/2.038, allocations: 0 / 1.384 GB, free: 10.99 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat does not exist to compare? outputFormat=mat