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.624/1.624, allocations: 292.6 MB / 307.5 MB, free: 5.168 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.001101/0.001101, allocations: 185 kB / 377.1 MB, free: 1.523 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.652/1.652, allocations: 205.4 MB / 0.6366 GB, free: 8.531 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.0009426/0.0009425, allocations: 90 kB / 0.7509 GB, free: 63.03 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003637, allocations: 12 kB / 0.8749 GB, free: 11.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2942, allocations: 116.3 MB / 0.9884 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8382/1.132, allocations: 138.9 MB / 1.124 GB, free: 35.66 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/1.133, allocations: 70.97 kB / 1.124 GB, free: 35.6 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003362/1.136, allocations: 1.033 MB / 1.125 GB, free: 34.8 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.218e-06/1.136, allocations: 0 / 1.125 GB, free: 34.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.182e-05/1.136, allocations: 0 / 1.125 GB, free: 34.8 MB / 0.7292 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.0004876/1.137, allocations: 374.7 kB / 1.126 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/1.137, allocations: 20.19 kB / 1.126 GB, free: 34.39 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.536e-05/1.137, allocations: 34.56 kB / 1.126 GB, free: 34.35 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.191e-05/1.137, allocations: 2.062 kB / 1.126 GB, free: 34.35 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/1.137, allocations: 167 kB / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/1.137, allocations: 0 / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.137, allocations: 7.438 kB / 1.126 GB, free: 34.14 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/1.137, allocations: 69.53 kB / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/1.137, allocations: 0.6562 kB / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/1.137, allocations: 0 / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/1.137, allocations: 0 / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/1.138, allocations: 55.12 kB / 1.126 GB, free: 34.04 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/1.138, allocations: 271.5 kB / 1.126 GB, free: 33.74 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/1.138, allocations: 63.72 kB / 1.126 GB, free: 33.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/1.138, allocations: 0 / 1.126 GB, free: 33.68 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/1.138, allocations: 75.36 kB / 1.126 GB, free: 33.61 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 1.293e-06/1.138, allocations: 0 / 1.126 GB, free: 33.61 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0003748/1.139, allocations: 127.4 kB / 1.126 GB, free: 33.5 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/1.139, allocations: 51.41 kB / 1.126 GB, free: 33.43 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.957e-05/1.139, allocations: 104.5 kB / 1.127 GB, free: 33.33 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/1.139, allocations: 25.7 kB / 1.127 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/1.139, allocations: 91.8 kB / 1.127 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/1.139, allocations: 15.8 kB / 1.127 GB, free: 33.19 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-06/1.139, allocations: 0 / 1.127 GB, free: 33.19 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.894e-05/1.139, allocations: 319.7 kB / 1.127 GB, free: 32.87 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.931e-05/1.139, allocations: 30.98 kB / 1.127 GB, free: 32.85 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.872e-05/1.139, allocations: 61.19 kB / 1.127 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.271e-05/1.139, allocations: 30.98 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/1.139, allocations: 4 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002281/1.14, allocations: 107.4 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.14, allocations: 4 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/1.14, allocations: 0 / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/1.14, allocations: 4 kB / 1.127 GB, free: 32.65 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/1.14, allocations: 24.19 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/1.14, allocations: 1.109 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.609e-05/1.14, allocations: 11.52 kB / 1.127 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/1.14, allocations: 4 kB / 1.127 GB, free: 32.62 MB / 0.7292 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.246e-05/1.14, allocations: 118.4 kB / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/1.14, allocations: 4.406 kB / 1.127 GB, free: 32.49 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002653/1.14, allocations: 104.1 kB / 1.127 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/1.14, allocations: 8.688 kB / 1.127 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.14, allocations: 0 / 1.127 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/1.14, allocations: 4.734 kB / 1.127 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003677/1.141, allocations: 351.8 kB / 1.128 GB, free: 32.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/1.141, allocations: 0.9375 kB / 1.128 GB, free: 32.02 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.698e-05/1.141, allocations: 11.52 kB / 1.128 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/1.141, allocations: 0.9375 kB / 1.128 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/1.141, allocations: 4 kB / 1.128 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/1.141, allocations: 0 / 1.128 GB, free: 32.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/1.141, allocations: 7.938 kB / 1.128 GB, free: 32 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/1.141, allocations: 193.9 kB / 1.128 GB, free: 31.81 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.771e-05/1.141, allocations: 85.11 kB / 1.128 GB, free: 31.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/1.141, allocations: 0 / 1.128 GB, free: 31.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.291e-05/1.141, allocations: 12.05 kB / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.026e-05/1.141, allocations: 0 / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/1.141, allocations: 4.75 kB / 1.128 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.094e-05/1.141, allocations: 87.66 kB / 1.128 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.141, allocations: 0 / 1.128 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002257/1.142, allocations: 16 kB / 1.128 GB, free: 31.6 MB / 0.7292 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.000483/1.142, allocations: 0.7423 MB / 1.129 GB, free: 30.85 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002338/1.142, allocations: 70.91 kB / 1.129 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/1.142, allocations: 0.9375 kB / 1.129 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.538e-05/1.142, allocations: 35.61 kB / 1.129 GB, free: 30.76 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/1.143, allocations: 4.688 kB / 1.129 GB, free: 30.76 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006024/1.143, allocations: 0.8137 MB / 1.13 GB, free: 29.9 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/1.143, allocations: 0.6842 MB / 1.131 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.144e-05/1.143, allocations: 4 kB / 1.131 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.002e-05/1.143, allocations: 15.44 kB / 1.131 GB, free: 29.18 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/1.143, allocations: 4 kB / 1.131 GB, free: 29.18 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/1.157, allocations: 1.39 MB / 1.132 GB, free: 28.43 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/1.157, allocations: 185.7 kB / 1.132 GB, free: 28.19 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/2.795, allocations: 4.062 kB / 1.132 GB, free: 28.18 MB / 0.7292 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)