Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001107/0.001107, allocations: 109.7 kB / 16.92 MB, free: 5.773 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.00114/0.00114, allocations: 191.5 kB / 17.85 MB, free: 5.176 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.302/1.302, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1773/0.1773, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 61.22 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09546, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.01059/0.1061, allocations: 4.704 MB / 461.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.1097, allocations: 1.348 MB / 463 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002947/0.11, allocations: 11.94 kB / 463 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.1116, allocations: 405.6 kB / 463.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008083/0.1125, allocations: 242.7 kB / 463.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007243/0.1132, allocations: 171.6 kB / 463.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009345/0.1142, allocations: 0.5451 MB / 464.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000783/0.115, allocations: 353.8 kB / 464.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.1155, allocations: 262.8 kB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000676/0.1162, allocations: 263.1 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.535e-05/0.1163, allocations: 39.92 kB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004996/0.1169, allocations: 127.8 kB / 465.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003081/0.1172, allocations: 179.5 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003602/0.1176, allocations: 226.9 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007049/0.1183, allocations: 0.5139 MB / 466.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1183, allocations: 4 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1183, allocations: 4 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1183, allocations: 4 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.00154/0.1199, allocations: 0.7184 MB / 467 MB, free: 13.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.12, allocations: 11.89 kB / 467.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.1201, allocations: 74.72 kB / 467.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.1212, allocations: 88.31 kB / 467.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009454/0.1222, allocations: 400 kB / 467.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.1222, allocations: 25.38 kB / 467.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.1225, allocations: 47.92 kB / 467.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.1237, allocations: 476.8 kB / 468.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.1237, allocations: 4 kB / 468.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/0.1238, allocations: 20 kB / 468.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.124, allocations: 24.98 kB / 468.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008308/0.1248, allocations: 339.7 kB / 468.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/0.1283, allocations: 1.644 MB / 470.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.1288, allocations: 169.1 kB / 470.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.1291, allocations: 109.7 kB / 470.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.1292, allocations: 4 kB / 470.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.1292, allocations: 42.5 kB / 470.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 2.395e-06/0.1292, allocations: 0 / 470.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.002205/0.1315, allocations: 0.7793 MB / 471.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.1316, allocations: 81.11 kB / 471.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.132, allocations: 312.6 kB / 471.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.1321, allocations: 25.7 kB / 471.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.1324, allocations: 251.5 kB / 471.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.397e-05/0.1325, allocations: 78.94 kB / 472 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.1327, allocations: 61.61 kB / 472.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.1329, allocations: 342.8 kB / 472.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.1332, allocations: 95.94 kB / 472.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004156/0.1336, allocations: 204.5 kB / 472.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.1344, allocations: 335.3 kB / 473 MB, free: 7.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1344, allocations: 4 kB / 473 MB, free: 7.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001441/0.1359, allocations: 429.5 kB / 473.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.1359, allocations: 8 kB / 473.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000919/0.1368, allocations: 262.9 kB / 473.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005766/0.1374, allocations: 81.09 kB / 473.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.1379, allocations: 59.91 kB / 473.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/0.1406, allocations: 1.719 MB / 475.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.141, allocations: 12 kB / 475.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.141, allocations: 19.98 kB / 475.6 MB, free: 4.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003613/0.1414, allocations: 193.7 kB / 475.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1415, allocations: 31.62 kB / 475.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007341/0.1423, allocations: 262.5 kB / 476.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.1423, allocations: 4 kB / 476.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1423, allocations: 0 / 476.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.1423, allocations: 7.922 kB / 476.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.1442, allocations: 0.742 MB / 476.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.1442, allocations: 4 kB / 476.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.1447, allocations: 51.97 kB / 476.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/0.1447, allocations: 3.938 kB / 476.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.1448, allocations: 8 kB / 476.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1448, allocations: 0 / 476.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.1448, allocations: 7.984 kB / 476.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000935/0.1458, allocations: 458.2 kB / 477.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.1459, allocations: 112.7 kB / 477.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.356e-05/0.146, allocations: 8 kB / 477.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.1463, allocations: 4 kB / 477.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.1464, allocations: 11.98 kB / 477.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.1464, allocations: 11.98 kB / 477.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003425/0.1468, allocations: 223 kB / 477.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1468, allocations: 0 / 477.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007265/0.1475, allocations: 84 kB / 477.8 MB, free: 2.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (23): * Single equations (assignments): 22 * 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.001339/0.1489, allocations: 0.9936 MB / 478.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.15, allocations: 403 kB / 479.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.15, allocations: 0 / 479.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.1503, allocations: 103.9 kB / 479.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008193/0.1511, allocations: 69.33 kB / 479.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006949/0.1581, allocations: 3.542 MB / 482.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.1588, allocations: 0.8538 MB / 483.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003858/0.1592, allocations: 74.89 kB / 483.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.1595, allocations: 135.4 kB / 483.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1595, allocations: 0 / 483.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04767/0.2072, allocations: 7.082 MB / 491 MB, free: 4.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.159/9.366, allocations: 7.688 kB / 491 MB, free: 4.973 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1)