Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.001076/0.001076, allocations: 180.9 kB / 492.3 MB, free: 0.5898 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.575/1.575, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0009739/0.0009741, allocations: 99.81 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.406e-05/4.446e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2933, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.924/1.217, allocations: 149.1 MB / 1.358 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001755/1.218, allocations: 66.62 kB / 1.358 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003215/1.221, allocations: 1.047 MB / 1.359 GB, free: 34.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/1.221, allocations: 0 / 1.359 GB, free: 34.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.6e-06/1.221, allocations: 0 / 1.359 GB, free: 34.78 MB / 0.8386 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.0003169/1.221, allocations: 364.5 kB / 1.36 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/1.221, allocations: 8.578 kB / 1.36 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/1.221, allocations: 38.48 kB / 1.36 GB, free: 34.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/1.221, allocations: 3.906 kB / 1.36 GB, free: 34.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.666e-05/1.221, allocations: 176.1 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/1.221, allocations: 0 / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/1.221, allocations: 6.562 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.06e-05/1.221, allocations: 46.86 kB / 1.36 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/1.221, allocations: 11.83 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/1.221, allocations: 0.7969 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/1.221, allocations: 0 / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.67e-05/1.222, allocations: 16.2 kB / 1.36 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003551/1.222, allocations: 281.4 kB / 1.36 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.954e-05/1.222, allocations: 29.88 kB / 1.36 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.647e-05/1.222, allocations: 19.95 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/1.222, allocations: 2.328 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.586e-05/1.222, allocations: 61.05 kB / 1.36 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/1.222, allocations: 0 / 1.36 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0001315/1.222, allocations: 55.23 kB / 1.36 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/1.222, allocations: 55.36 kB / 1.36 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.723e-05/1.222, allocations: 101.6 kB / 1.36 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/1.222, allocations: 33.58 kB / 1.36 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/1.222, allocations: 89.14 kB / 1.361 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/1.222, allocations: 12.3 kB / 1.361 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/1.222, allocations: 2.938 kB / 1.361 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.862e-05/1.223, allocations: 313.2 kB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.662e-05/1.223, allocations: 14.47 kB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.565e-05/1.223, allocations: 40.66 kB / 1.361 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.604e-05/1.223, allocations: 20.47 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.223, allocations: 1.422 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001054/1.223, allocations: 75.33 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/1.223, allocations: 3.875 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/1.223, allocations: 3.844 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/1.223, allocations: 4.688 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/1.223, allocations: 17.86 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/1.223, allocations: 4.062 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.158e-05/1.223, allocations: 13.19 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/1.223, allocations: 8.578 kB / 1.361 GB, free: 33.05 MB / 0.8386 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 () * 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 5.001e-05/1.223, allocations: 108.1 kB / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-06/1.223, allocations: 0.5156 kB / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/1.223, allocations: 76.8 kB / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/1.223, allocations: 0 / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/1.223, allocations: 12.61 kB / 1.361 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/1.223, allocations: 0 / 1.361 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/1.223, allocations: 312 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/1.223, allocations: 0 / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.976e-05/1.224, allocations: 14.19 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/1.224, allocations: 0 / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/1.224, allocations: 4.797 kB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.224, allocations: 4 kB / 1.362 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.224, allocations: 8.047 kB / 1.362 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/1.224, allocations: 154.3 kB / 1.362 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/1.224, allocations: 85.05 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/1.224, allocations: 0.7031 kB / 1.362 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.973e-05/1.224, allocations: 13.28 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/1.224, allocations: 5.734 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/1.224, allocations: 7.516 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.421e-05/1.224, allocations: 83.45 kB / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.224, allocations: 0 / 1.362 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002231/1.224, allocations: 19.16 kB / 1.362 GB, free: 32.26 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * 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.0003328/1.225, allocations: 0.6984 MB / 1.363 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.757e-05/1.225, allocations: 37.22 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/1.225, allocations: 0 / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.296e-05/1.225, allocations: 15.86 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001547/1.225, allocations: 6.422 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003065/1.225, allocations: 119.4 kB / 1.363 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/1.225, allocations: 0.6905 MB / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.965e-05/1.225, allocations: 5.328 kB / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/1.225, allocations: 12.12 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.225, allocations: 0 / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01059/1.236, allocations: 1.418 MB / 1.365 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001233/1.236, allocations: 164.3 kB / 1.365 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.496/2.733, allocations: 7.938 kB / 1.365 GB, free: 30.36 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat does not exist to compare? outputFormat=mat