Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0/package.mo): time 3.147/3.147, allocations: 287.3 MB / 302.3 MB, free: 8.324 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.001571/0.001571, allocations: 189.5 kB / 370.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.4 MB / 0.6295 GB, free: 10.57 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.001152/0.001152, allocations: 88.28 kB / 0.7428 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004943/0.0004945, allocations: 11.81 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2665, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008888/0.2674, allocations: 397.8 kB / 0.9787 GB, free: 27.89 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2688, allocations: 1.029 MB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.487e-05/0.2689, allocations: 4 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.2689, allocations: 0 / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.6e-05/0.269, allocations: 0 / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.2693, allocations: 39.83 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.905e-05/0.2694, allocations: 23.97 kB / 0.9797 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.2695, allocations: 8 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.671e-05/0.2695, allocations: 15.91 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.501e-05/0.2696, allocations: 15.92 kB / 0.9798 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.2696, allocations: 8 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.683e-05/0.2697, allocations: 15.98 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.2697, allocations: 4 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.238e-05/0.2698, allocations: 37.58 kB / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.807e-05/0.2699, allocations: 39.91 kB / 0.9799 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2699, allocations: 0 / 0.9799 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2699, allocations: 0 / 0.9799 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.2699, allocations: 0 / 0.9799 GB, free: 26.63 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.0005296/0.2705, allocations: 355.5 kB / 0.9802 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.2705, allocations: 12.02 kB / 0.9802 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.2706, allocations: 34.55 kB / 0.9803 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.2706, allocations: 7.906 kB / 0.9803 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.2707, allocations: 171 kB / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.2708, allocations: 4 kB / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.2708, allocations: 4 kB / 0.9804 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.271, allocations: 65.61 kB / 0.9805 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2711, allocations: 0 / 0.9805 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2711, allocations: 11.98 kB / 0.9805 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2711, allocations: 0 / 0.9805 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.2714, allocations: 47.97 kB / 0.9806 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005041/0.2719, allocations: 276.9 kB / 0.9808 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.2722, allocations: 46.66 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.2722, allocations: 7.922 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.2725, allocations: 75.39 kB / 0.9809 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.144e-06/0.2725, allocations: 0 / 0.9809 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0005746/0.2731, allocations: 125.5 kB / 0.9811 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.2731, allocations: 55.39 kB / 0.9811 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.886e-05/0.2732, allocations: 117.8 kB / 0.9812 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.2732, allocations: 25.7 kB / 0.9812 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.602e-05/0.2733, allocations: 88.08 kB / 0.9813 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.2733, allocations: 15.75 kB / 0.9813 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.2733, allocations: 8 kB / 0.9814 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.977e-05/0.2734, allocations: 318.8 kB / 0.9817 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.2736, allocations: 23.98 kB / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2737, allocations: 55.41 kB / 0.9817 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.2739, allocations: 27.98 kB / 0.9818 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2739, allocations: 0 / 0.9818 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003961/0.2743, allocations: 113.5 kB / 0.9819 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2744, allocations: 8 kB / 0.9819 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2744, allocations: 0 / 0.9819 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2744, allocations: 3.938 kB / 0.9819 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.2746, allocations: 24.09 kB / 0.9819 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2746, allocations: 4 kB / 0.9819 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.2747, allocations: 19.86 kB / 0.9819 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2748, allocations: 0 / 0.9819 GB, free: 24.28 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 8.317e-05/0.2749, allocations: 119.9 kB / 0.982 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.2749, allocations: 4 kB / 0.982 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004154/0.2753, allocations: 101.6 kB / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2753, allocations: 3.984 kB / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2753, allocations: 0 / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2754, allocations: 0 / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.2759, allocations: 350.4 kB / 0.9825 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2759, allocations: 0 / 0.9825 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.2761, allocations: 19.92 kB / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.2761, allocations: 0 / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2761, allocations: 384 / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2761, allocations: 0 / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.2761, allocations: 7.953 kB / 0.9825 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.2765, allocations: 187.5 kB / 0.9827 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.2766, allocations: 85 kB / 0.9828 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.2766, allocations: 8 kB / 0.9828 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.2767, allocations: 8 kB / 0.9828 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.2768, allocations: 7.984 kB / 0.9828 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.2768, allocations: 7.891 kB / 0.9828 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.79e-05/0.2769, allocations: 83.28 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.9e-07/0.2769, allocations: 4 kB / 0.9829 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003336/0.2772, allocations: 11.98 kB / 0.9829 GB, free: 23.19 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.0006182/0.2778, allocations: 0.7242 MB / 0.9836 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003812/0.2782, allocations: 71.89 kB / 0.9837 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2783, allocations: 0 / 0.9837 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.2784, allocations: 31.97 kB / 0.9837 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2787, allocations: 8.25 kB / 0.9837 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006664/0.2794, allocations: 0.8132 MB / 0.9845 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2795, allocations: 0.6809 MB / 0.9852 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.448e-05/0.2796, allocations: 7.984 kB / 0.9852 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.2796, allocations: 11.44 kB / 0.9852 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of SimCode: time 7.81e-07/0.2796, allocations: 0 / 0.9852 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.3023, allocations: 1.417 MB / 0.9866 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.3026, allocations: 188.7 kB / 0.9867 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/2.724, allocations: 5.266 kB / 0.9868 GB, free: 19.2 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)