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.354/2.354, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001153/0.001153, allocations: 172.9 kB / 496.1 MB, free: 12.86 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.612/1.612, allocations: 221.3 MB / 0.7915 GB, free: 5.387 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.0009731/0.0009731, allocations: 91.89 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.05e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2561, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9366/1.193, allocations: 150 MB / 1.365 GB, free: 4.008 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/1.193, allocations: 66.66 kB / 1.365 GB, free: 3.973 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003043/1.196, allocations: 1.046 MB / 1.366 GB, free: 3.039 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.413e-06/1.196, allocations: 0 / 1.366 GB, free: 3.039 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.941e-06/1.196, allocations: 4 kB / 1.366 GB, free: 3.035 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000431/1.196, allocations: 354.5 kB / 1.367 GB, free: 2.648 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/1.197, allocations: 12.03 kB / 1.367 GB, free: 2.637 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.174e-05/1.197, allocations: 37.86 kB / 1.367 GB, free: 2.594 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/1.197, allocations: 7.906 kB / 1.367 GB, free: 2.586 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/1.197, allocations: 175 kB / 1.367 GB, free: 2.375 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/1.197, allocations: 0 / 1.367 GB, free: 2.375 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/1.197, allocations: 8.812 kB / 1.367 GB, free: 2.371 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/1.197, allocations: 46.19 kB / 1.367 GB, free: 2.324 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/1.197, allocations: 0 / 1.367 GB, free: 2.324 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/1.197, allocations: 3.312 kB / 1.367 GB, free: 2.324 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/1.197, allocations: 0 / 1.367 GB, free: 2.324 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.965e-05/1.197, allocations: 11.94 kB / 1.367 GB, free: 2.316 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/1.197, allocations: 290.9 kB / 1.367 GB, free: 2 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 6.879e-05/1.198, allocations: 33.39 kB / 1.367 GB, free: 1.965 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.113e-05/1.198, allocations: 16.23 kB / 1.367 GB, free: 1.949 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/1.198, allocations: 1.969 kB / 1.367 GB, free: 1.949 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.329e-05/1.198, allocations: 59.12 kB / 1.367 GB, free: 1.887 MB / 0.823 GB Notification: Performance of pre-optimization done (n=5): time 1.542e-06/1.198, allocations: 0 / 1.367 GB, free: 1.887 MB / 0.823 GB Notification: Performance of matching and sorting (n=5): time 0.0001512/1.198, allocations: 68.58 kB / 1.367 GB, free: 1.82 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/1.198, allocations: 59.39 kB / 1.368 GB, free: 1.75 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.095e-05/1.198, allocations: 101.1 kB / 1.368 GB, free: 1.648 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/1.198, allocations: 25.7 kB / 1.368 GB, free: 1.617 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/1.198, allocations: 83.7 kB / 1.368 GB, free: 1.535 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/1.198, allocations: 19.25 kB / 1.368 GB, free: 1.52 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/1.198, allocations: 0 / 1.368 GB, free: 1.52 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.345e-05/1.198, allocations: 322.1 kB / 1.368 GB, free: 1.199 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.898e-05/1.198, allocations: 11.88 kB / 1.368 GB, free: 1.191 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/1.198, allocations: 30.69 kB / 1.368 GB, free: 1.152 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.669e-05/1.198, allocations: 15.75 kB / 1.368 GB, free: 1.141 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.198, allocations: 8 kB / 1.368 GB, free: 1.133 MB / 0.823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001268/1.198, allocations: 75.45 kB / 1.368 GB, free: 1.062 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/1.198, allocations: 8 kB / 1.368 GB, free: 1.055 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.198, allocations: 0 / 1.368 GB, free: 1.055 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/1.198, allocations: 3.938 kB / 1.368 GB, free: 1.051 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/1.199, allocations: 19.98 kB / 1.368 GB, free: 1.031 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/1.199, allocations: 4.422 kB / 1.368 GB, free: 1.027 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.167e-05/1.199, allocations: 12.12 kB / 1.368 GB, free: 1.016 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/1.199, allocations: 7.797 kB / 1.368 GB, free: 1.012 MB / 0.823 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 6.047e-05/1.199, allocations: 109.4 kB / 1.368 GB, free: 0.8984 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-06/1.199, allocations: 0 / 1.368 GB, free: 0.8984 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/1.199, allocations: 63.97 kB / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/1.199, allocations: 4 kB / 1.368 GB, free: 0.832 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/1.199, allocations: 0 / 1.368 GB, free: 0.832 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/1.199, allocations: 3.953 kB / 1.368 GB, free: 0.8281 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/1.199, allocations: 319.6 kB / 1.369 GB, free: 492 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/1.199, allocations: 3.984 kB / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/1.199, allocations: 8 kB / 1.369 GB, free: 480 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/1.199, allocations: 4 kB / 1.369 GB, free: 476 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/1.199, allocations: 0 / 1.369 GB, free: 476 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/1.199, allocations: 4.141 kB / 1.369 GB, free: 472 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.199, allocations: 3.984 kB / 1.369 GB, free: 468 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/1.2, allocations: 166.1 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/1.2, allocations: 81.02 kB / 1.369 GB, free: 196 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/1.2, allocations: 0 / 1.369 GB, free: 196 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.063e-05/1.2, allocations: 11.98 kB / 1.369 GB, free: 184 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/1.2, allocations: 11.56 kB / 1.369 GB, free: 176 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/1.2, allocations: 7.938 kB / 1.369 GB, free: 168 kB / 0.823 GB Notification: Performance of sorting global known variables: time 4.86e-05/1.2, allocations: 86.7 kB / 1.369 GB, free: 84 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.6e-07/1.2, allocations: 4 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002228/1.2, allocations: 19.92 kB / 1.369 GB, free: 60 kB / 0.823 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.0004307/1.2, allocations: 0.6952 MB / 1.37 GB, free: 15.35 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001037/1.201, allocations: 31.23 kB / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.201, allocations: 4.25 kB / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/1.201, allocations: 19.38 kB / 1.37 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001643/1.201, allocations: 7.953 kB / 1.37 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/1.201, allocations: 124.8 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/1.201, allocations: 0.6937 MB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.025e-05/1.201, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/1.202, allocations: 15.38 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of SimCode: time 3.71e-07/1.202, allocations: 4 kB / 1.371 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/1.214, allocations: 1.419 MB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/1.214, allocations: 155.3 kB / 1.372 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/2.762, allocations: 64 / 1.372 GB, free: 12.92 MB / 0.8386 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