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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.00149, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002054, allocations: 200.6 kB / 16.64 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.816/1.816, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 78.16 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2644, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002087/0.2665, allocations: 0.6736 MB / 0.7843 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001389/0.268, allocations: 1.047 MB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.268, allocations: 3.938 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.768e-05/0.2681, allocations: 0 / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.696e-05/0.2681, allocations: 3.938 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.2684, allocations: 43.83 kB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.109e-05/0.2685, allocations: 39.86 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.2686, allocations: 11.98 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.454e-05/0.2687, allocations: 19.94 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.67e-05/0.2687, allocations: 23.91 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.931e-05/0.2688, allocations: 11.92 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.424e-05/0.2689, allocations: 15.98 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.2689, allocations: 4 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.269, allocations: 19.92 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.2691, allocations: 51.8 kB / 0.7856 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2691, allocations: 0 / 0.7856 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2691, allocations: 0 / 0.7856 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.2691, allocations: 0 / 0.7856 GB, free: 11.29 MB / 0.6075 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.0005594/0.2697, allocations: 359.7 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2697, allocations: 12.03 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2698, allocations: 30.75 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.2698, allocations: 8.844 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.2699, allocations: 180.2 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.27, allocations: 384 / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.27, allocations: 4.375 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.2702, allocations: 58.23 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2702, allocations: 7.938 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.2702, allocations: 0 / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2702, allocations: 0 / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.2704, allocations: 39.95 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.2709, allocations: 276.8 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.2711, allocations: 62.48 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.343e-05/0.2712, allocations: 24.92 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.2712, allocations: 4 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.2714, allocations: 63.39 kB / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.2714, allocations: 0 / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003943/0.2718, allocations: 109.6 kB / 0.7868 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.2719, allocations: 55.41 kB / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.324e-05/0.272, allocations: 110 kB / 0.7869 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.272, allocations: 29.7 kB / 0.7869 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.272, allocations: 89.19 kB / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.2721, allocations: 11.84 kB / 0.787 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.2721, allocations: 25.64 kB / 0.7871 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.2722, allocations: 322.8 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.2723, allocations: 27.97 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.2725, allocations: 43.48 kB / 0.7874 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.2727, allocations: 83.33 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2727, allocations: 0 / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002531/0.2729, allocations: 101.4 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.273, allocations: 5.062 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.273, allocations: 4 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.273, allocations: 7.984 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.2731, allocations: 8.25 kB / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2731, allocations: 3.984 kB / 0.7876 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.099e-05/0.2732, allocations: 12 kB / 0.7877 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.2732, allocations: 0 / 0.7877 GB, free: 8.895 MB / 0.6075 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.976e-05/0.2733, allocations: 117.8 kB / 0.7878 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/0.2733, allocations: 11.89 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002597/0.2736, allocations: 93.56 kB / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2736, allocations: 0 / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2736, allocations: 0 / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2736, allocations: 0 / 0.7879 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.274, allocations: 346.4 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2741, allocations: 0 / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.667e-05/0.2741, allocations: 11.98 kB / 0.7882 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2741, allocations: 0 / 0.7882 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.2741, allocations: 4 kB / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2742, allocations: 0 / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2742, allocations: 3.938 kB / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.2745, allocations: 179.4 kB / 0.7884 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.2745, allocations: 85.11 kB / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.2745, allocations: 0 / 0.7885 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.184e-05/0.2746, allocations: 7.984 kB / 0.7885 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.2747, allocations: 7.922 kB / 0.7885 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.2747, allocations: 8 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.568e-05/0.2747, allocations: 83.22 kB / 0.7886 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2747, allocations: 0 / 0.7886 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002366/0.275, allocations: 16 kB / 0.7886 GB, free: 7.828 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006049/0.2756, allocations: 0.7281 MB / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.2759, allocations: 55.89 kB / 0.7893 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2759, allocations: 4.25 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.276, allocations: 31.97 kB / 0.7894 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.2762, allocations: 11.94 kB / 0.7894 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.2778, allocations: 1.367 MB / 0.7907 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.2781, allocations: 0.6846 MB / 0.7914 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.554e-05/0.2781, allocations: 4 kB / 0.7914 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.2782, allocations: 15.44 kB / 0.7914 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.2782, allocations: 4 kB / 0.7914 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.2995, allocations: 1.69 MB / 0.7931 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/8.077, allocations: 6.766 kB / 0.7931 GB, free: 3.176 MB / 0.6075 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)