Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",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.001244/0.001244, allocations: 110 kB / 17.06 MB, free: 5.793 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.00123/0.00123, allocations: 200 kB / 18.01 MB, free: 4.918 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2207/0.2207, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3107, allocations: 58.06 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.005547/0.3163, allocations: 5.166 MB / 0.5087 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.3194, allocations: 1.755 MB / 0.5104 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000383/0.3198, allocations: 17.84 kB / 0.5104 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.321, allocations: 439.8 kB / 0.5108 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008008/0.3218, allocations: 308.7 kB / 0.5111 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.323, allocations: 353.7 kB / 0.5114 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.3241, allocations: 0.7667 MB / 0.5122 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005543/0.3246, allocations: 371.3 kB / 0.5125 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000566/0.3252, allocations: 343.5 kB / 0.5129 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007095/0.3259, allocations: 463.4 kB / 0.5133 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/0.326, allocations: 53.84 kB / 0.5134 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003906/0.3264, allocations: 170.5 kB / 0.5135 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003342/0.3268, allocations: 289.9 kB / 0.5138 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.3272, allocations: 340.5 kB / 0.5141 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.3282, allocations: 0.8126 MB / 0.5149 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3282, allocations: 0 / 0.5149 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3282, allocations: 1.469 kB / 0.5149 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.3283, allocations: 0 / 0.5149 GB, free: 0.6523 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001902/0.3302, allocations: 0.9259 MB / 0.5158 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3302, allocations: 13.3 kB / 0.5158 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.3304, allocations: 101.7 kB / 0.5159 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001146/0.3315, allocations: 141.6 kB / 0.5161 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.333, allocations: 0.536 MB / 0.5166 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.08e-05/0.3331, allocations: 43.06 kB / 0.5166 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004736/0.3336, allocations: 130.4 kB / 0.5168 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.3354, allocations: 0.8644 MB / 0.5176 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.3355, allocations: 4.969 kB / 0.5176 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.3356, allocations: 22.5 kB / 0.5176 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005199/0.3361, allocations: 70.48 kB / 0.5177 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.3372, allocations: 0.6176 MB / 0.5183 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.3431, allocations: 3.791 MB / 0.522 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.3444, allocations: 0.5403 MB / 0.5225 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005547/0.345, allocations: 321.3 kB / 0.5228 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.345, allocations: 9.562 kB / 0.5229 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.3451, allocations: 42.09 kB / 0.5229 GB, free: 11.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.296e-06/0.3451, allocations: 1.625 kB / 0.5229 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.004482/0.3496, allocations: 1.846 MB / 0.5247 GB, free: 10.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.025e-05/0.3497, allocations: 83.23 kB / 0.5248 GB, free: 10.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007592/0.3505, allocations: 417.5 kB / 0.5252 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.001e-05/0.3506, allocations: 36.33 kB / 0.5252 GB, free: 10.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.3509, allocations: 343.6 kB / 0.5255 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.3511, allocations: 209 kB / 0.5257 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002594/0.3514, allocations: 147.5 kB / 0.5259 GB, free: 10.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3515, allocations: 376.6 kB / 0.5262 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006205/0.3522, allocations: 380.6 kB / 0.5266 GB, free: 9.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007625/0.3529, allocations: 0.5962 MB / 0.5272 GB, free: 9.207 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.3543, allocations: 1.068 MB / 0.5282 GB, free: 8.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3544, allocations: 2.531 kB / 0.5282 GB, free: 8.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004961/0.3593, allocations: 2.01 MB / 0.5302 GB, free: 7.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.3594, allocations: 8.5 kB / 0.5302 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.3594, allocations: 11.75 kB / 0.5302 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002609/0.362, allocations: 0.9634 MB / 0.5311 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/0.3625, allocations: 117.9 kB / 0.5313 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.374, allocations: 8.197 MB / 0.5393 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007537/0.3748, allocations: 32.89 kB / 0.5393 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.3749, allocations: 40.17 kB / 0.5393 GB, free: 2.137 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004678/0.3754, allocations: 246 kB / 0.5396 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3755, allocations: 52.3 kB / 0.5396 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.3769, allocations: 0.727 MB / 0.5403 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3769, allocations: 9.656 kB / 0.5403 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3769, allocations: 0 / 0.5403 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.3769, allocations: 9.422 kB / 0.5403 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.3797, allocations: 1.526 MB / 0.5418 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3797, allocations: 0 / 0.5418 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.3808, allocations: 183.8 kB / 0.542 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.477e-06/0.3808, allocations: 4 kB / 0.542 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.972e-05/0.3809, allocations: 31.92 kB / 0.542 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.3809, allocations: 8.078 kB / 0.5421 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.3809, allocations: 7.984 kB / 0.5421 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.3823, allocations: 0.9936 MB / 0.543 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.3825, allocations: 128.8 kB / 0.5432 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.3826, allocations: 28 kB / 0.5432 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.383, allocations: 27.97 kB / 0.5432 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.3831, allocations: 28.39 kB / 0.5432 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.3831, allocations: 19.98 kB / 0.5433 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.3834, allocations: 279.1 kB / 0.5435 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3834, allocations: 0 / 0.5435 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009561/0.3844, allocations: 212 kB / 0.5437 GB, free: 14.51 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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.001718/0.3861, allocations: 1.566 MB / 0.5453 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002859/0.389, allocations: 1.48 MB / 0.5467 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.389, allocations: 0 / 0.5467 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.3896, allocations: 310.3 kB / 0.547 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/0.3904, allocations: 134.2 kB / 0.5471 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.4071, allocations: 9.74 MB / 0.5566 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/0.4078, allocations: 0.9804 MB / 0.5576 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006062/0.4084, allocations: 204.6 kB / 0.5578 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.4088, allocations: 239.3 kB / 0.558 GB, free: 15.47 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4088, allocations: 0 / 0.558 GB, free: 15.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04428/0.453, allocations: 17.48 MB / 0.5751 GB, free: 14.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.9, allocations: 8.359 kB / 0.5751 GB, free: 14.11 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)