Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.001594/0.001594, allocations: 108 kB / 15.61 MB, free: 152 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.002061/0.002061, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.483/1.483, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.824/1.824, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.002375/0.002375, allocations: 69.91 kB / 0.6716 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2506, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.01273/0.2634, allocations: 5.523 MB / 0.7889 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.007177/0.2706, allocations: 2.659 MB / 0.7915 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000732/0.2714, allocations: 27.81 kB / 0.7915 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.2741, allocations: 0.6807 MB / 0.7922 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001884/0.276, allocations: 413.7 kB / 0.7925 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.2776, allocations: 397.8 kB / 0.7929 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001797/0.2795, allocations: 0.963 MB / 0.7939 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.2805, allocations: 470.7 kB / 0.7943 GB, free: 2.219 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007224/0.2812, allocations: 366.7 kB / 0.7947 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007585/0.282, allocations: 402.4 kB / 0.795 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.2822, allocations: 48 kB / 0.7951 GB, free: 1.418 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009094/0.2831, allocations: 367.2 kB / 0.7954 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003243/0.2835, allocations: 247.3 kB / 0.7957 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005901/0.2841, allocations: 354.1 kB / 0.796 GB, free: 480 kB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.2854, allocations: 0.9617 MB / 0.797 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2854, allocations: 0 / 0.797 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2854, allocations: 0 / 0.797 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 4.22e-05/0.2855, allocations: 0 / 0.797 GB, free: 15.5 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001942/0.2874, allocations: 0.9853 MB / 0.7979 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.2875, allocations: 8.031 kB / 0.7979 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.2876, allocations: 94.7 kB / 0.798 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/0.2891, allocations: 199.8 kB / 0.7982 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.2902, allocations: 498.4 kB / 0.7987 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.845e-05/0.2902, allocations: 33.38 kB / 0.7987 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.2904, allocations: 56.53 kB / 0.7988 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.292, allocations: 0.8362 MB / 0.7996 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.292, allocations: 7.938 kB / 0.7996 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-05/0.2921, allocations: 24 kB / 0.7996 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002097/0.2923, allocations: 60.95 kB / 0.7997 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.2934, allocations: 0.5697 MB / 0.8002 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005221/0.2986, allocations: 4.585 MB / 0.8047 GB, free: 7.039 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.2991, allocations: 295.2 kB / 0.805 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.2994, allocations: 233.3 kB / 0.8052 GB, free: 6.512 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.2995, allocations: 4.266 kB / 0.8052 GB, free: 6.508 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.2995, allocations: 38.84 kB / 0.8053 GB, free: 6.461 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.2995, allocations: 0 / 0.8053 GB, free: 6.461 MB / 0.6231 GB Notification: Performance of matching and sorting (n=40): time 0.005695/0.3052, allocations: 2.638 MB / 0.8078 GB, free: 3.695 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.3053, allocations: 55.41 kB / 0.8079 GB, free: 3.629 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005327/0.3058, allocations: 462 kB / 0.8083 GB, free: 3.164 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.3059, allocations: 37.64 kB / 0.8084 GB, free: 3.121 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.3061, allocations: 343.6 kB / 0.8087 GB, free: 2.777 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.3062, allocations: 145.9 kB / 0.8088 GB, free: 2.633 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.3064, allocations: 106.2 kB / 0.8089 GB, free: 2.523 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3066, allocations: 362.8 kB / 0.8093 GB, free: 2.16 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003487/0.3069, allocations: 233 kB / 0.8095 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.3074, allocations: 409.5 kB / 0.8099 GB, free: 1.457 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008764/0.3083, allocations: 0.6779 MB / 0.8105 GB, free: 0.707 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3083, allocations: 4 kB / 0.8106 GB, free: 0.7031 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001683/0.31, allocations: 0.921 MB / 0.8115 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.31, allocations: 4.938 kB / 0.8115 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.31, allocations: 8 kB / 0.8115 GB, free: 15.75 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007849/0.3108, allocations: 226.8 kB / 0.8117 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.3113, allocations: 115.8 kB / 0.8118 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005259/0.3166, allocations: 5.339 MB / 0.817 GB, free: 9.648 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.3172, allocations: 27.98 kB / 0.817 GB, free: 9.621 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.3172, allocations: 27.98 kB / 0.8171 GB, free: 9.594 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003359/0.3176, allocations: 224.4 kB / 0.8173 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.73e-05/0.3177, allocations: 59.28 kB / 0.8173 GB, free: 9.309 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001489/0.3192, allocations: 0.7744 MB / 0.8181 GB, free: 8.52 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3192, allocations: 4 kB / 0.8181 GB, free: 8.516 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3192, allocations: 192 / 0.8181 GB, free: 8.516 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3192, allocations: 7.984 kB / 0.8181 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/0.3217, allocations: 1.51 MB / 0.8196 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3217, allocations: 0 / 0.8196 GB, free: 6.914 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003781/0.3221, allocations: 71.89 kB / 0.8196 GB, free: 6.844 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000689/0.3228, allocations: 210.7 kB / 0.8198 GB, free: 6.629 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.3228, allocations: 8 kB / 0.8198 GB, free: 6.621 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004933/0.3278, allocations: 5.282 MB / 0.825 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3278, allocations: 0 / 0.825 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.3296, allocations: 1.143 MB / 0.8261 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002415/0.3298, allocations: 172.3 kB / 0.8263 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/0.3299, allocations: 12 kB / 0.8263 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.3303, allocations: 23.97 kB / 0.8263 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.933e-05/0.3304, allocations: 35.89 kB / 0.8264 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.3304, allocations: 12.06 kB / 0.8264 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003422/0.3307, allocations: 322.9 kB / 0.8267 GB, free: 15.13 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3308, allocations: 0 / 0.8267 GB, free: 15.13 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000695/0.3315, allocations: 168 kB / 0.8268 GB, free: 14.97 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002053/0.3335, allocations: 1.684 MB / 0.8285 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001768/0.3353, allocations: 1.075 MB / 0.8295 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3353, allocations: 0 / 0.8295 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3363, allocations: 0.6798 MB / 0.8302 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009344/0.3373, allocations: 186.5 kB / 0.8304 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007874/0.3452, allocations: 5.713 MB / 0.8359 GB, free: 5.23 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005583/0.3458, allocations: 0.9532 MB / 0.8369 GB, free: 4.25 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0003847/0.3462, allocations: 117 kB / 0.837 GB, free: 4.133 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.3464, allocations: 211.4 kB / 0.8372 GB, free: 3.926 MB / 0.6544 GB Notification: Performance of SimCode: time 8.31e-07/0.3464, allocations: 0 / 0.8372 GB, free: 3.926 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04457/0.391, allocations: 14.02 MB / 0.8509 GB, free: 6.188 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.49/9.881, allocations: 9.5 kB / 0.8509 GB, free: 6.18 MB / 0.67 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)