Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.901/1.901, allocations: 289.9 MB / 297.4 MB, free: 6.418 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 184.8 kB / 366.7 MB, free: 1.703 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.2 MB / 0.626 GB, free: 7.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008537/0.0008536, allocations: 77.72 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.108e-05/2.112e-05, allocations: 4 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7697/0.7698, allocations: 116.3 MB / 0.9734 GB, free: 76.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1969/0.9668, allocations: 138.2 MB / 1.108 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.967, allocations: 72.67 kB / 1.108 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003116/0.9702, allocations: 1.04 MB / 1.109 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.153e-06/0.9702, allocations: 1.406 kB / 1.109 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.9702, allocations: 0.6562 kB / 1.109 GB, free: 10.83 MB / 0.7136 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.0004381/0.9707, allocations: 354.2 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.9707, allocations: 12.03 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.9708, allocations: 0.7812 kB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.9709, allocations: 171 kB / 1.11 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.9709, allocations: 2.75 kB / 1.11 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.9709, allocations: 5.031 kB / 1.11 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.112e-05/0.971, allocations: 19.94 kB / 1.11 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.137e-05/0.9711, allocations: 42.66 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.9711, allocations: 0 / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.9711, allocations: 1.469 kB / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.9711, allocations: 0 / 1.11 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.9716, allocations: 258.7 kB / 1.11 GB, free: 9.867 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.895e-05/0.9717, allocations: 31.61 kB / 1.11 GB, free: 9.828 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.9717, allocations: 18.72 kB / 1.11 GB, free: 9.809 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.9718, allocations: 10.45 kB / 1.11 GB, free: 9.801 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/0.9719, allocations: 55.41 kB / 1.11 GB, free: 9.734 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.9719, allocations: 0 / 1.11 GB, free: 9.734 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5): time 0.000162/0.972, allocations: 49.7 kB / 1.11 GB, free: 9.68 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.9721, allocations: 60.7 kB / 1.11 GB, free: 9.609 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.65e-05/0.9722, allocations: 97 kB / 1.111 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.9722, allocations: 25.7 kB / 1.111 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.207e-05/0.9723, allocations: 84.61 kB / 1.111 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.9723, allocations: 21.02 kB / 1.111 GB, free: 9.371 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-06/0.9723, allocations: 0 / 1.111 GB, free: 9.371 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.9725, allocations: 318 kB / 1.111 GB, free: 9.055 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.951e-05/0.9725, allocations: 14.69 kB / 1.111 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.101e-05/0.9726, allocations: 37.8 kB / 1.111 GB, free: 8.996 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.9727, allocations: 24.91 kB / 1.111 GB, free: 8.973 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.9728, allocations: 0 / 1.111 GB, free: 8.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001841/0.9729, allocations: 82.38 kB / 1.111 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.973, allocations: 8 kB / 1.111 GB, free: 8.883 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.973, allocations: 0 / 1.111 GB, free: 8.883 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.973, allocations: 0.9375 kB / 1.111 GB, free: 8.883 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.9731, allocations: 18.42 kB / 1.111 GB, free: 8.867 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.9731, allocations: 4.562 kB / 1.111 GB, free: 8.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.064e-05/0.9732, allocations: 9.234 kB / 1.111 GB, free: 8.855 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.9732, allocations: 8 kB / 1.111 GB, free: 8.848 MB / 0.7136 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.805e-05/0.9733, allocations: 114.7 kB / 1.111 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.331e-05/0.9734, allocations: 55.25 kB / 1.111 GB, free: 8.672 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.9734, allocations: 7.906 kB / 1.111 GB, free: 8.664 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.9736, allocations: 63.53 kB / 1.111 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.9736, allocations: 0 / 1.111 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.9736, allocations: 4 kB / 1.111 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.9736, allocations: 3.984 kB / 1.111 GB, free: 8.582 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.9739, allocations: 285 kB / 1.112 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9739, allocations: 0 / 1.112 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.229e-05/0.974, allocations: 15.98 kB / 1.112 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.974, allocations: 0 / 1.112 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.974, allocations: 0 / 1.112 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.974, allocations: 0 / 1.112 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.974, allocations: 0 / 1.112 GB, free: 8.246 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.9741, allocations: 168.2 kB / 1.112 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.9742, allocations: 85.09 kB / 1.112 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.9742, allocations: 0 / 1.112 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.9743, allocations: 4 kB / 1.112 GB, free: 7.961 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.9744, allocations: 8.734 kB / 1.112 GB, free: 7.953 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.9744, allocations: 3.938 kB / 1.112 GB, free: 7.949 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.889e-05/0.9744, allocations: 83.28 kB / 1.112 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9744, allocations: 0 / 1.112 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000231/0.9747, allocations: 23.94 kB / 1.112 GB, free: 7.844 MB / 0.7136 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.0005794/0.9753, allocations: 0.7066 MB / 1.113 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001183/0.9754, allocations: 24 kB / 1.113 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.9754, allocations: 0 / 1.113 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.612e-05/0.9754, allocations: 31.44 kB / 1.113 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.9757, allocations: 8 kB / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.9762, allocations: 110.1 kB / 1.113 GB, free: 6.914 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.9765, allocations: 0.6807 MB / 1.114 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.84e-05/0.9766, allocations: 7.984 kB / 1.114 GB, free: 6.199 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.9766, allocations: 11.44 kB / 1.114 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of SimCode: time 3.2e-07/0.9766, allocations: 0 / 1.114 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.9999, allocations: 1.102 MB / 1.115 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000257/1, allocations: 138.8 kB / 1.115 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.556/2.556, allocations: 3.938 kB / 1.115 GB, free: 4.938 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)