Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_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.001036/0.001036, allocations: 107.6 kB / 16.27 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 191.9 kB / 17.2 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7215/0.7215, allocations: 122.8 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 63.91 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3006, allocations: 77.92 MB / 0.5673 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005985/0.3066, allocations: 5.522 MB / 0.5727 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.3103, allocations: 2.645 MB / 0.5753 GB, free: 27.14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003779/0.3107, allocations: 25.19 kB / 0.5753 GB, free: 27.12 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.3123, allocations: 0.6754 MB / 0.576 GB, free: 26.72 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009651/0.3133, allocations: 409 kB / 0.5763 GB, free: 26.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009169/0.3142, allocations: 409.9 kB / 0.5767 GB, free: 26.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008866/0.3151, allocations: 0.9591 MB / 0.5777 GB, free: 25.86 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006635/0.3158, allocations: 479.9 kB / 0.5781 GB, free: 25.68 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.3163, allocations: 360.8 kB / 0.5785 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005187/0.3168, allocations: 406 kB / 0.5789 GB, free: 25.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.395e-05/0.3169, allocations: 48 kB / 0.5789 GB, free: 25.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006685/0.3176, allocations: 365.1 kB / 0.5793 GB, free: 25.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.3178, allocations: 255.5 kB / 0.5795 GB, free: 25.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.3181, allocations: 349.6 kB / 0.5798 GB, free: 24.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008855/0.319, allocations: 0.9637 MB / 0.5808 GB, free: 24.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.319, allocations: 1.844 kB / 0.5808 GB, free: 24.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.319, allocations: 0.9062 kB / 0.5808 GB, free: 24.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3191, allocations: 0 / 0.5808 GB, free: 24.49 MB / 446.1 MB 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.001238/0.3203, allocations: 0.9782 MB / 0.5817 GB, free: 23.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3203, allocations: 10.31 kB / 0.5817 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.3205, allocations: 94.98 kB / 0.5818 GB, free: 23.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/0.3218, allocations: 195.5 kB / 0.582 GB, free: 23.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005445/0.3223, allocations: 0.4903 MB / 0.5825 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.3223, allocations: 34.81 kB / 0.5825 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.3225, allocations: 54.23 kB / 0.5826 GB, free: 23.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009135/0.3234, allocations: 0.8289 MB / 0.5834 GB, free: 22.49 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.3234, allocations: 5.312 kB / 0.5834 GB, free: 22.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.3235, allocations: 19.78 kB / 0.5834 GB, free: 22.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001788/0.3237, allocations: 70.62 kB / 0.5835 GB, free: 22.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007341/0.3244, allocations: 0.5697 MB / 0.584 GB, free: 22.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003143/0.3276, allocations: 4.59 MB / 0.5885 GB, free: 17.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.328, allocations: 292.9 kB / 0.5888 GB, free: 17.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.3283, allocations: 230.5 kB / 0.589 GB, free: 17.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.3283, allocations: 4.219 kB / 0.589 GB, free: 17.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.3283, allocations: 33.91 kB / 0.5891 GB, free: 17.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=33): time 2.044e-06/0.3283, allocations: 1.062 kB / 0.5891 GB, free: 17.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=40): time 0.004927/0.3333, allocations: 2.643 MB / 0.5916 GB, free: 15.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.3333, allocations: 55.41 kB / 0.5917 GB, free: 15.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004033/0.3337, allocations: 468.6 kB / 0.5921 GB, free: 15.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.3337, allocations: 35.89 kB / 0.5922 GB, free: 15.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.3339, allocations: 344.1 kB / 0.5925 GB, free: 15.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.618e-05/0.334, allocations: 140.7 kB / 0.5926 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.3341, allocations: 109.3 kB / 0.5927 GB, free: 14.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.3342, allocations: 359.7 kB / 0.5931 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.3345, allocations: 242.9 kB / 0.5933 GB, free: 14.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003702/0.3349, allocations: 411.1 kB / 0.5937 GB, free: 14.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007069/0.3356, allocations: 0.6722 MB / 0.5944 GB, free: 13.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3356, allocations: 2.188 kB / 0.5944 GB, free: 13.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001448/0.3371, allocations: 0.9213 MB / 0.5953 GB, free: 13.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3371, allocations: 11.42 kB / 0.5953 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3371, allocations: 5.156 kB / 0.5953 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/0.3378, allocations: 226.1 kB / 0.5955 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/0.3383, allocations: 119.8 kB / 0.5956 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00349/0.3418, allocations: 5.343 MB / 0.6008 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.3422, allocations: 31.97 kB / 0.6009 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.3422, allocations: 24 kB / 0.6009 GB, free: 7.113 MB / 446.1 MB 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.0002178/0.3425, allocations: 225.7 kB / 0.6011 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-05/0.3425, allocations: 63.27 kB / 0.6012 GB, free: 6.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.3438, allocations: 0.7621 MB / 0.6019 GB, free: 6.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3438, allocations: 7.984 kB / 0.6019 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3438, allocations: 4 kB / 0.6019 GB, free: 6.027 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3438, allocations: 0 / 0.6019 GB, free: 6.027 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.3456, allocations: 1.494 MB / 0.6034 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3457, allocations: 8.031 kB / 0.6034 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.346, allocations: 67.88 kB / 0.6034 GB, free: 4.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005717/0.3466, allocations: 214.6 kB / 0.6036 GB, free: 4.152 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.3466, allocations: 8 kB / 0.6037 GB, free: 4.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.3502, allocations: 5.273 MB / 0.6088 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3502, allocations: 4.031 kB / 0.6088 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.3518, allocations: 1.14 MB / 0.6099 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.3521, allocations: 172.5 kB / 0.6101 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/0.3521, allocations: 11.98 kB / 0.6101 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.3525, allocations: 31.95 kB / 0.6101 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.3526, allocations: 35.89 kB / 0.6102 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.3526, allocations: 12 kB / 0.6102 GB, free: 12.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003027/0.3529, allocations: 314.9 kB / 0.6105 GB, free: 12.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3529, allocations: 4.062 kB / 0.6105 GB, free: 12.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006117/0.3535, allocations: 164 kB / 0.6106 GB, free: 12.51 MB / 462.1 MB 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.001852/0.3554, allocations: 1.696 MB / 0.6123 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.3569, allocations: 1.056 MB / 0.6133 GB, free: 9.656 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.357, allocations: 12.06 kB / 0.6133 GB, free: 9.645 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008951/0.3579, allocations: 0.6835 MB / 0.614 GB, free: 8.922 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008456/0.3587, allocations: 177.6 kB / 0.6142 GB, free: 8.762 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006964/0.3657, allocations: 5.711 MB / 0.6197 GB, free: 2.762 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.3662, allocations: 0.9455 MB / 0.6207 GB, free: 1.785 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003615/0.3665, allocations: 109 kB / 0.6208 GB, free: 1.676 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.3668, allocations: 219.4 kB / 0.621 GB, free: 1.461 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3668, allocations: 0 / 0.621 GB, free: 1.461 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.4032, allocations: 14.01 MB / 0.6347 GB, free: 3.758 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.89/9.294, allocations: 6.094 kB / 0.6347 GB, free: 3.754 MB / 478.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)