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.812/1.812, allocations: 289.7 MB / 302.2 MB, free: 2.199 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.001052/0.001052, allocations: 186.7 kB / 371.6 MB, free: 3.406 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.822/1.822, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0009389/0.0009389, allocations: 92.7 kB / 0.745 GB, free: 54.56 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.078e-05/4.08e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2717, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8392/1.111, allocations: 138.8 MB / 1.115 GB, free: 44.8 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/1.111, allocations: 73.27 kB / 1.116 GB, free: 44.77 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.002858/1.114, allocations: 1.038 MB / 1.117 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.513e-06/1.114, allocations: 0 / 1.117 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.012e-06/1.114, allocations: 1.062 kB / 1.117 GB, free: 44.07 MB / 0.7448 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.0003519/1.114, allocations: 357.5 kB / 1.117 GB, free: 43.7 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/1.115, allocations: 8.531 kB / 1.117 GB, free: 43.69 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/1.115, allocations: 38.03 kB / 1.117 GB, free: 43.65 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/1.115, allocations: 6.281 kB / 1.117 GB, free: 43.65 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/1.115, allocations: 167.7 kB / 1.117 GB, free: 43.45 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/1.115, allocations: 8.094 kB / 1.117 GB, free: 43.45 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/1.115, allocations: 4 kB / 1.117 GB, free: 43.44 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/1.115, allocations: 44.69 kB / 1.117 GB, free: 43.4 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/1.115, allocations: 1.562 kB / 1.117 GB, free: 43.4 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/1.115, allocations: 3.578 kB / 1.117 GB, free: 43.4 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/1.115, allocations: 8 kB / 1.117 GB, free: 43.39 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.774e-05/1.115, allocations: 12.62 kB / 1.117 GB, free: 43.39 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003869/1.115, allocations: 285.2 kB / 1.117 GB, free: 43.09 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.281e-05/1.115, allocations: 35.06 kB / 1.117 GB, free: 43.06 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/1.115, allocations: 15.45 kB / 1.118 GB, free: 43.05 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/1.116, allocations: 11.98 kB / 1.118 GB, free: 43.04 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.202e-05/1.116, allocations: 54.78 kB / 1.118 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=5): time 2.194e-06/1.116, allocations: 0.5156 kB / 1.118 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5): time 0.0001524/1.116, allocations: 58.08 kB / 1.118 GB, free: 42.93 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/1.116, allocations: 58.48 kB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.563e-05/1.116, allocations: 97.58 kB / 1.118 GB, free: 42.77 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/1.116, allocations: 25.7 kB / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/1.116, allocations: 99.45 kB / 1.118 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/1.116, allocations: 8.5 kB / 1.118 GB, free: 42.63 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/1.116, allocations: 0 / 1.118 GB, free: 42.63 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 5.801e-05/1.116, allocations: 322.7 kB / 1.118 GB, free: 42.31 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.674e-05/1.116, allocations: 11.81 kB / 1.118 GB, free: 42.3 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.594e-05/1.116, allocations: 35.62 kB / 1.118 GB, free: 42.27 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.488e-05/1.116, allocations: 15.81 kB / 1.118 GB, free: 42.25 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.116, allocations: 3.938 kB / 1.118 GB, free: 42.25 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000106/1.116, allocations: 80.53 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/1.116, allocations: 4 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/1.116, allocations: 4 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/1.116, allocations: 0 / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/1.116, allocations: 19.59 kB / 1.118 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/1.116, allocations: 4 kB / 1.118 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.659e-05/1.117, allocations: 8.016 kB / 1.118 GB, free: 42.15 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/1.117, allocations: 8.672 kB / 1.118 GB, free: 42.15 MB / 0.7448 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 5.614e-05/1.117, allocations: 117.4 kB / 1.119 GB, free: 42.03 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/1.117, allocations: 0 / 1.119 GB, free: 42.03 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/1.117, allocations: 69.95 kB / 1.119 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/1.117, allocations: 4 kB / 1.119 GB, free: 41.97 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/1.117, allocations: 0 / 1.119 GB, free: 41.97 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/1.117, allocations: 0 / 1.119 GB, free: 41.97 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/1.117, allocations: 323.6 kB / 1.119 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.117, allocations: 0 / 1.119 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/1.117, allocations: 12.14 kB / 1.119 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.117, allocations: 0 / 1.119 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/1.117, allocations: 0 / 1.119 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/1.117, allocations: 9.406 kB / 1.119 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.117, allocations: 0.625 kB / 1.119 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001011/1.117, allocations: 158.4 kB / 1.119 GB, free: 41.46 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/1.117, allocations: 85.58 kB / 1.119 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/1.117, allocations: 3.562 kB / 1.119 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/1.117, allocations: 4.844 kB / 1.119 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/1.117, allocations: 7.375 kB / 1.119 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/1.117, allocations: 5 kB / 1.119 GB, free: 41.35 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.754e-05/1.117, allocations: 88.33 kB / 1.119 GB, free: 41.27 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.31e-07/1.117, allocations: 0 / 1.119 GB, free: 41.27 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002138/1.118, allocations: 27.27 kB / 1.119 GB, free: 41.25 MB / 0.7448 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.0003436/1.118, allocations: 0.7006 MB / 1.12 GB, free: 40.54 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.854e-05/1.118, allocations: 35.88 kB / 1.12 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.118, allocations: 2.953 kB / 1.12 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.806e-05/1.118, allocations: 20.44 kB / 1.12 GB, free: 40.5 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/1.118, allocations: 5.5 kB / 1.12 GB, free: 40.5 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/1.119, allocations: 111.5 kB / 1.12 GB, free: 40.37 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001438/1.119, allocations: 0.6806 MB / 1.121 GB, free: 39.67 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.351e-05/1.119, allocations: 14.67 kB / 1.121 GB, free: 39.66 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.718e-05/1.119, allocations: 15.12 kB / 1.121 GB, free: 39.65 MB / 0.7448 GB Notification: Performance of SimCode: time 3.51e-07/1.119, allocations: 0 / 1.121 GB, free: 39.65 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01259/1.132, allocations: 1.421 MB / 1.122 GB, free: 38.9 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/1.132, allocations: 158.9 kB / 1.122 GB, free: 38.68 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.731, allocations: 0 / 1.122 GB, free: 38.68 MB / 0.7448 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)