Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.479/1.479, allocations: 251.9 MB / 266.8 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001356/0.001356, allocations: 180.7 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.16/2.16, allocations: 205.4 MB / 0.5775 GB, free: 20.52 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008864/0.0008863, allocations: 94.36 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004672, allocations: 15.42 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2431, allocations: 106.3 MB / 0.9002 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1679/0.411, allocations: 131.7 MB / 1.029 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.4114, allocations: 75.95 kB / 1.029 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00261/0.4141, allocations: 0.8644 MB / 1.03 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.577e-06/0.4141, allocations: 0 / 1.03 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.183e-05/0.4142, allocations: 0 / 1.03 GB, free: 11.43 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004937/0.4147, allocations: 371.1 kB / 1.03 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.4147, allocations: 12.03 kB / 1.03 GB, free: 11 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.4148, allocations: 30.56 kB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.4148, allocations: 8 kB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.4149, allocations: 182.9 kB / 1.03 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.415, allocations: 4 kB / 1.03 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.415, allocations: 0 / 1.03 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.4152, allocations: 69.67 kB / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.4152, allocations: 0 / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.4152, allocations: 0 / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.4152, allocations: 0 / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.4154, allocations: 55.95 kB / 1.03 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004324/0.4159, allocations: 284.7 kB / 1.031 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.416, allocations: 62.67 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.4161, allocations: 4 kB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.4163, allocations: 75.5 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.4163, allocations: 0 / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0004147/0.4167, allocations: 133.6 kB / 1.031 GB, free: 9.98 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.4168, allocations: 59.34 kB / 1.031 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.4169, allocations: 100.9 kB / 1.031 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.4169, allocations: 25.7 kB / 1.031 GB, free: 9.773 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.4169, allocations: 92.12 kB / 1.031 GB, free: 9.68 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.417, allocations: 23.81 kB / 1.031 GB, free: 9.656 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-06/0.417, allocations: 0 / 1.031 GB, free: 9.656 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4171, allocations: 318.8 kB / 1.031 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4172, allocations: 27.97 kB / 1.032 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.4174, allocations: 68.14 kB / 1.032 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.4175, allocations: 40.8 kB / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4175, allocations: 0 / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002483/0.4177, allocations: 117.5 kB / 1.032 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.4178, allocations: 4.156 kB / 1.032 GB, free: 9.062 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.4178, allocations: 4 kB / 1.032 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4178, allocations: 4 kB / 1.032 GB, free: 9.055 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.4179, allocations: 20.17 kB / 1.032 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.4179, allocations: 0 / 1.032 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.418, allocations: 23.86 kB / 1.032 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.418, allocations: 4 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.000105/0.4181, allocations: 125.8 kB / 1.032 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.4181, allocations: 4 kB / 1.032 GB, free: 8.871 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.4184, allocations: 106 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4184, allocations: 0 / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4185, allocations: 4 kB / 1.032 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4185, allocations: 4 kB / 1.032 GB, free: 8.758 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/0.4189, allocations: 362.4 kB / 1.032 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4189, allocations: 0 / 1.032 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.4e-05/0.419, allocations: 11.98 kB / 1.032 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.419, allocations: 4 kB / 1.032 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.419, allocations: 4 kB / 1.032 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.419, allocations: 0 / 1.032 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.419, allocations: 3.953 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.4193, allocations: 199.4 kB / 1.033 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.4194, allocations: 85.09 kB / 1.033 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.4194, allocations: 4 kB / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4195, allocations: 11.98 kB / 1.033 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.4196, allocations: 4 kB / 1.033 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.4196, allocations: 3.953 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.412e-05/0.4196, allocations: 87.27 kB / 1.033 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4196, allocations: 4 kB / 1.033 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002166/0.4198, allocations: 15.91 kB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005579/0.4204, allocations: 0.7283 MB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.4207, allocations: 75.89 kB / 1.034 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4207, allocations: 4.312 kB / 1.034 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.4208, allocations: 40.09 kB / 1.034 GB, free: 7.008 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.421, allocations: 9.828 kB / 1.034 GB, free: 7 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007744/0.4218, allocations: 0.9668 MB / 1.035 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.422, allocations: 0.6887 MB / 1.035 GB, free: 5.246 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.999e-05/0.4221, allocations: 192 / 1.035 GB, free: 5.246 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.4222, allocations: 23.36 kB / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of SimCode: time 3.11e-07/0.4222, allocations: 0 / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01168/0.4338, allocations: 1.335 MB / 1.037 GB, free: 4.035 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.4341, allocations: 200.3 kB / 1.037 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.437/1.871, allocations: 0 / 1.037 GB, free: 3.789 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)