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.23/2.23, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001097/0.001097, allocations: 172.9 kB / 487.4 MB, free: 5.062 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.714/1.714, allocations: 221.5 MB / 0.7824 GB, free: 1.031 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008881/0.0008883, allocations: 107.3 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.897e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3117, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9909/1.303, allocations: 148.5 MB / 1.351 GB, free: 18.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/1.303, allocations: 69.31 kB / 1.351 GB, free: 18.04 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003581/1.307, allocations: 1.047 MB / 1.352 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.513e-06/1.307, allocations: 0 / 1.352 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.475e-06/1.307, allocations: 0 / 1.352 GB, free: 33.69 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.0004151/1.307, allocations: 355.4 kB / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/1.307, allocations: 12.81 kB / 1.352 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/1.307, allocations: 11.27 kB / 1.353 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/1.307, allocations: 165.7 kB / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/1.307, allocations: 2.453 kB / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/1.307, allocations: 6.438 kB / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000116/1.307, allocations: 11.44 kB / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.678e-05/1.308, allocations: 47.83 kB / 1.353 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/1.308, allocations: 1.281 kB / 1.353 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/1.308, allocations: 0 / 1.353 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/1.308, allocations: 2.953 kB / 1.353 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004322/1.308, allocations: 254.5 kB / 1.353 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.396e-05/1.308, allocations: 36.52 kB / 1.353 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.981e-05/1.308, allocations: 9.984 kB / 1.353 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/1.308, allocations: 13.3 kB / 1.353 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/1.308, allocations: 56.83 kB / 1.353 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=5): time 1.352e-06/1.308, allocations: 0 / 1.353 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0001679/1.308, allocations: 58.7 kB / 1.353 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/1.308, allocations: 51.41 kB / 1.353 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.901e-05/1.309, allocations: 97.73 kB / 1.353 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/1.309, allocations: 25.7 kB / 1.353 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.74e-05/1.309, allocations: 92.66 kB / 1.353 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/1.309, allocations: 9.25 kB / 1.353 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-06/1.309, allocations: 7.938 kB / 1.353 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.309, allocations: 323.4 kB / 1.354 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.485e-05/1.309, allocations: 7.594 kB / 1.354 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.9e-05/1.309, allocations: 31.78 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/1.309, allocations: 27.69 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.309, allocations: 0 / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001785/1.309, allocations: 80.47 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/1.309, allocations: 5.406 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/1.309, allocations: 4.672 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.309, allocations: 0 / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.309, allocations: 15.08 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/1.309, allocations: 12.47 kB / 1.354 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.092e-05/1.31, allocations: 6.328 kB / 1.354 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/1.31, allocations: 4.5 kB / 1.354 GB, free: 32.04 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 8.534e-05/1.31, allocations: 111.9 kB / 1.354 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.791e-05/1.31, allocations: 54.52 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/1.31, allocations: 4.609 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/1.31, allocations: 69.27 kB / 1.354 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/1.31, allocations: 0 / 1.354 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.31, allocations: 10.89 kB / 1.354 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/1.31, allocations: 0 / 1.354 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/1.31, allocations: 282.9 kB / 1.354 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/1.31, allocations: 0 / 1.354 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.018e-05/1.31, allocations: 14.34 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/1.31, allocations: 8.469 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/1.31, allocations: 3.938 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/1.31, allocations: 0 / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.31, allocations: 4.797 kB / 1.354 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/1.31, allocations: 154 kB / 1.355 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/1.31, allocations: 85.86 kB / 1.355 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/1.31, allocations: 0.6562 kB / 1.355 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/1.311, allocations: 6.062 kB / 1.355 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.159e-05/1.311, allocations: 9.656 kB / 1.355 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/1.311, allocations: 4.609 kB / 1.355 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.542e-05/1.311, allocations: 88.88 kB / 1.355 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.311, allocations: 0 / 1.355 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002287/1.311, allocations: 16.22 kB / 1.355 GB, free: 31.25 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.0004996/1.311, allocations: 0.7001 MB / 1.355 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.98e-05/1.312, allocations: 34.03 kB / 1.356 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/1.312, allocations: 0 / 1.356 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/1.312, allocations: 19.2 kB / 1.356 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/1.312, allocations: 11.42 kB / 1.356 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/1.312, allocations: 116.5 kB / 1.356 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/1.312, allocations: 0.6828 MB / 1.356 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.482e-05/1.312, allocations: 9.469 kB / 1.356 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.73e-05/1.312, allocations: 15.47 kB / 1.356 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.312, allocations: 0 / 1.356 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/1.333, allocations: 1.095 MB / 1.357 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/1.333, allocations: 139.1 kB / 1.358 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/2.826, allocations: 5.859 kB / 1.358 GB, free: 29.49 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