Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.672/1.672, allocations: 288.4 MB / 303.3 MB, free: 8.121 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.001226/0.001226, allocations: 173.6 kB / 372 MB, free: 10.28 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.748/1.748, allocations: 205.4 MB / 0.6307 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007897/0.0007896, allocations: 102.8 kB / 0.7441 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004043/0.0004046, allocations: 12.28 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2519, allocations: 115.3 MB / 0.9797 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008176/0.2527, allocations: 386.1 kB / 0.98 GB, free: 27.2 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.2539, allocations: 1.033 MB / 0.981 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.581e-05/0.254, allocations: 4 kB / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.254, allocations: 3.938 kB / 0.981 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.696e-05/0.2541, allocations: 7.938 kB / 0.981 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.2543, allocations: 27.97 kB / 0.9811 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.691e-05/0.2544, allocations: 35.84 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.874e-05/0.2545, allocations: 12 kB / 0.9811 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.2546, allocations: 11.92 kB / 0.9811 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.462e-05/0.2547, allocations: 23.84 kB / 0.9811 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.2547, allocations: 4 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.903e-05/0.2548, allocations: 19.98 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.2548, allocations: 0 / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.2548, allocations: 33.7 kB / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.454e-05/0.2549, allocations: 39.91 kB / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.2549, allocations: 0 / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.785e-06/0.2549, allocations: 0 / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.2549, allocations: 3.938 kB / 0.9812 GB, free: 25.92 MB / 0.6198 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.0004662/0.2554, allocations: 355.5 kB / 0.9816 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.2555, allocations: 12.02 kB / 0.9816 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.2555, allocations: 30.56 kB / 0.9816 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.2555, allocations: 7.906 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.2556, allocations: 171 kB / 0.9818 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.2557, allocations: 4 kB / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.2557, allocations: 4 kB / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.2559, allocations: 61.67 kB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.2559, allocations: 11.94 kB / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.2559, allocations: 4 kB / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2559, allocations: 0 / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.2561, allocations: 51.89 kB / 0.9819 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004169/0.2566, allocations: 280.9 kB / 0.9822 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.2567, allocations: 42.56 kB / 0.9822 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.421e-05/0.2568, allocations: 36.92 kB / 0.9823 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.2568, allocations: 0 / 0.9823 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.257, allocations: 75.33 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.2571, allocations: 4 kB / 0.9823 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0003906/0.2575, allocations: 121.5 kB / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.2575, allocations: 51.41 kB / 0.9825 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.2576, allocations: 113.8 kB / 0.9826 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.2576, allocations: 33.7 kB / 0.9827 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.2576, allocations: 80.14 kB / 0.9827 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.2577, allocations: 19.75 kB / 0.9827 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.2577, allocations: 0 / 0.9827 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.34e-05/0.2577, allocations: 318.8 kB / 0.9831 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.2579, allocations: 27.98 kB / 0.9831 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.258, allocations: 59.34 kB / 0.9831 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.968e-05/0.2581, allocations: 23.98 kB / 0.9832 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.2581, allocations: 8 kB / 0.9832 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002418/0.2583, allocations: 105.6 kB / 0.9833 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2584, allocations: 5.406 kB / 0.9833 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.2584, allocations: 128 / 0.9833 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.2584, allocations: 11.94 kB / 0.9833 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.2585, allocations: 19.92 kB / 0.9833 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.2585, allocations: 0 / 0.9833 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.983e-05/0.2586, allocations: 15.91 kB / 0.9833 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.2586, allocations: 11.94 kB / 0.9833 GB, free: 23.54 MB / 0.6198 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 7.105e-05/0.2587, allocations: 113.8 kB / 0.9834 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.2587, allocations: 4 kB / 0.9834 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.259, allocations: 101.5 kB / 0.9835 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.259, allocations: 4 kB / 0.9835 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.259, allocations: 0 / 0.9835 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.259, allocations: 3.984 kB / 0.9835 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/0.2594, allocations: 358.7 kB / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2594, allocations: 0 / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.946e-05/0.2594, allocations: 15.98 kB / 0.9839 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2594, allocations: 0 / 0.9839 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.2595, allocations: 7.938 kB / 0.9839 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2595, allocations: 0 / 0.9839 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2595, allocations: 4 kB / 0.9839 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.2597, allocations: 187.5 kB / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.981e-05/0.2597, allocations: 89 kB / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.2598, allocations: 0 / 0.9842 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.2598, allocations: 12 kB / 0.9842 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.2599, allocations: 3.984 kB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.2599, allocations: 4 kB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.661e-05/0.2599, allocations: 91.22 kB / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2599, allocations: 0 / 0.9843 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002285/0.2602, allocations: 12 kB / 0.9843 GB, free: 22.45 MB / 0.6198 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.000455/0.2606, allocations: 0.7319 MB / 0.985 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002306/0.2609, allocations: 71.89 kB / 0.9851 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2609, allocations: 0 / 0.9851 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.261, allocations: 32.23 kB / 0.9851 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.2612, allocations: 4 kB / 0.9851 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008479/0.2621, allocations: 0.4933 MB / 0.9856 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.2622, allocations: 0.6848 MB / 0.9863 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.171e-05/0.2623, allocations: 3.938 kB / 0.9863 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.2623, allocations: 19.42 kB / 0.9863 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of SimCode: time 3.31e-07/0.2623, allocations: 0 / 0.9863 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.2753, allocations: 1.431 MB / 0.9877 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.2756, allocations: 206 kB / 0.9879 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.537/1.813, allocations: 0 / 0.9879 GB, free: 18.79 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)