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.188/2.188, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001105/0.001106, allocations: 188.3 kB / 498.1 MB, free: 5.742 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.541/1.541, allocations: 223.1 MB / 0.7948 GB, free: 17.9 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.0009474/0.000947, allocations: 96.27 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003873, allocations: 6.969 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2507, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1728/0.4235, allocations: 149.2 MB / 1.369 GB, free: 12.77 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.4238, allocations: 71.95 kB / 1.369 GB, free: 12.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00314/0.427, allocations: 1.051 MB / 1.37 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.683e-06/0.427, allocations: 0 / 1.37 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.427, allocations: 0 / 1.37 GB, free: 11.64 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.0004766/0.4275, allocations: 369 kB / 1.37 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4275, allocations: 8.031 kB / 1.37 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.899e-05/0.4276, allocations: 34.56 kB / 1.37 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.4276, allocations: 7.906 kB / 1.37 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.4277, allocations: 178.9 kB / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.4278, allocations: 0 / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.4278, allocations: 7.984 kB / 1.37 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.428, allocations: 73.66 kB / 1.37 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.428, allocations: 3.938 kB / 1.37 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.428, allocations: 3.938 kB / 1.37 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.428, allocations: 0 / 1.37 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.4282, allocations: 51.95 kB / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004252/0.4287, allocations: 272.9 kB / 1.371 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.4288, allocations: 58.48 kB / 1.371 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.4289, allocations: 4 kB / 1.371 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.4291, allocations: 67.48 kB / 1.371 GB, free: 10.35 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.4291, allocations: 0 / 1.371 GB, free: 10.35 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.0003866/0.4295, allocations: 129.5 kB / 1.371 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.4295, allocations: 59.36 kB / 1.371 GB, free: 10.15 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.4296, allocations: 96.98 kB / 1.371 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.4296, allocations: 29.7 kB / 1.371 GB, free: 10.01 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.4297, allocations: 88.14 kB / 1.371 GB, free: 9.922 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.4297, allocations: 11.81 kB / 1.371 GB, free: 9.91 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.4297, allocations: 0 / 1.371 GB, free: 9.91 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4298, allocations: 318.8 kB / 1.372 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.885e-05/0.4299, allocations: 23.98 kB / 1.372 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.4301, allocations: 59.7 kB / 1.372 GB, free: 9.496 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.4302, allocations: 31.98 kB / 1.372 GB, free: 9.465 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4302, allocations: 4 kB / 1.372 GB, free: 9.461 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002637/0.4304, allocations: 109.5 kB / 1.372 GB, free: 9.348 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.4305, allocations: 4 kB / 1.372 GB, free: 9.344 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.4305, allocations: 160 / 1.372 GB, free: 9.344 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.4305, allocations: 8.125 kB / 1.372 GB, free: 9.336 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.4306, allocations: 19.98 kB / 1.372 GB, free: 9.316 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4306, allocations: 3.984 kB / 1.372 GB, free: 9.312 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.862e-05/0.4307, allocations: 23.78 kB / 1.372 GB, free: 9.289 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.4307, allocations: 4 kB / 1.372 GB, free: 9.285 MB / 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 8.287e-05/0.4308, allocations: 113.8 kB / 1.372 GB, free: 9.164 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.4308, allocations: 4 kB / 1.372 GB, free: 9.16 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002606/0.4311, allocations: 101.6 kB / 1.372 GB, free: 9.055 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.4311, allocations: 0 / 1.372 GB, free: 9.055 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4311, allocations: 4 kB / 1.372 GB, free: 9.051 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4311, allocations: 0 / 1.372 GB, free: 9.051 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000412/0.4315, allocations: 350.4 kB / 1.372 GB, free: 8.652 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4316, allocations: 8.312 kB / 1.372 GB, free: 8.645 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.4316, allocations: 11.98 kB / 1.372 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4316, allocations: 0 / 1.372 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.4317, allocations: 11.94 kB / 1.372 GB, free: 8.621 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4317, allocations: 0 / 1.372 GB, free: 8.621 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4317, allocations: 3.953 kB / 1.372 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.432, allocations: 195.4 kB / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.534e-05/0.432, allocations: 85.11 kB / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.432, allocations: 0 / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.4321, allocations: 7.984 kB / 1.373 GB, free: 8.301 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.4322, allocations: 7.953 kB / 1.373 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.4322, allocations: 0 / 1.373 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.061e-05/0.4322, allocations: 91.27 kB / 1.373 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4323, allocations: 0 / 1.373 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002309/0.4325, allocations: 11.91 kB / 1.373 GB, free: 8.191 MB / 0.8698 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.0005951/0.4331, allocations: 0.7435 MB / 1.373 GB, free: 7.418 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.4333, allocations: 63.89 kB / 1.374 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4334, allocations: 4 kB / 1.374 GB, free: 7.352 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.4335, allocations: 36.17 kB / 1.374 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.4337, allocations: 7.984 kB / 1.374 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006847/0.4344, allocations: 0.8081 MB / 1.374 GB, free: 6.441 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.4346, allocations: 0.6848 MB / 1.375 GB, free: 5.73 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.595e-05/0.4347, allocations: 8 kB / 1.375 GB, free: 5.723 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.456e-05/0.4347, allocations: 11.44 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of SimCode: time 3.21e-07/0.4347, allocations: 0 / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01293/0.4476, allocations: 1.403 MB / 1.376 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/0.4479, allocations: 182.5 kB / 1.377 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/1.94, allocations: 0 / 1.377 GB, free: 4.195 MB / 0.8698 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