Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001292/0.001292, allocations: 108.3 kB / 16.92 MB, free: 6.332 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.00126/0.00126, allocations: 189.3 kB / 17.85 MB, free: 5.414 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.393/1.393, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1766/0.1766, allocations: 38.03 MB / 329.7 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 62.59 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09725/0.09913, allocations: 58.06 MB / 457 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.007031/0.1062, allocations: 4.552 MB / 461.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.1089, allocations: 1.562 MB / 463.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.1091, allocations: 11.94 kB / 463.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000877/0.11, allocations: 286.6 kB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005458/0.1105, allocations: 270.7 kB / 463.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006097/0.1111, allocations: 263.3 kB / 463.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006468/0.1118, allocations: 0.604 MB / 464.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004266/0.1122, allocations: 256.3 kB / 464.7 MB, free: 108 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.1126, allocations: 266.9 kB / 465 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004937/0.1131, allocations: 330.9 kB / 465.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.421e-05/0.1132, allocations: 36 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.1135, allocations: 131.8 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002393/0.1137, allocations: 231.4 kB / 465.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.114, allocations: 250.8 kB / 466 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.1147, allocations: 0.584 MB / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1147, allocations: 0 / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1147, allocations: 0 / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1147, allocations: 0 / 466.5 MB, free: 14.3 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001434/0.1161, allocations: 0.766 MB / 467.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1162, allocations: 19.89 kB / 467.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.1163, allocations: 86.64 kB / 467.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006019/0.1169, allocations: 92.22 kB / 467.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006319/0.1176, allocations: 404 kB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.1176, allocations: 29.38 kB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.1178, allocations: 43.94 kB / 468 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009868/0.1188, allocations: 0.6716 MB / 468.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1188, allocations: 0 / 468.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.1188, allocations: 20 kB / 468.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.119, allocations: 44.97 kB / 468.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008088/0.1198, allocations: 495.5 kB / 469.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/0.1234, allocations: 3.155 MB / 472.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.1239, allocations: 249.3 kB / 472.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.1241, allocations: 121.7 kB / 472.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.1241, allocations: 11.97 kB / 472.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.1242, allocations: 34.5 kB / 472.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.1242, allocations: 0 / 472.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001544/0.1257, allocations: 0.8907 MB / 473.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.1258, allocations: 77.11 kB / 473.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.1262, allocations: 336.4 kB / 474 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.1262, allocations: 29.7 kB / 474.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.1264, allocations: 295 kB / 474.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.1265, allocations: 82.81 kB / 474.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1266, allocations: 86.03 kB / 474.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.1268, allocations: 358.8 kB / 474.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.1271, allocations: 124.8 kB / 475 MB, free: 5.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.1274, allocations: 325.1 kB / 475.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000652/0.1281, allocations: 0.4972 MB / 475.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1281, allocations: 4 kB / 475.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001134/0.1292, allocations: 0.5879 MB / 476.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.1293, allocations: 11.12 kB / 476.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006626/0.1299, allocations: 337.3 kB / 476.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.1304, allocations: 113.6 kB / 476.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.1307, allocations: 83.83 kB / 476.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00335/0.1341, allocations: 3.293 MB / 480.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.1343, allocations: 15.98 kB / 480.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-05/0.1344, allocations: 24 kB / 480.3 MB, free: 15.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002767/0.1347, allocations: 216.6 kB / 480.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.1347, allocations: 31.62 kB / 480.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000561/0.1353, allocations: 320.9 kB / 480.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1353, allocations: 7.984 kB / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1353, allocations: 3.938 kB / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1354, allocations: 0 / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.1365, allocations: 0.8043 MB / 481.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1366, allocations: 0 / 481.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.1369, allocations: 59.84 kB / 481.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1369, allocations: 7.984 kB / 481.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.1369, allocations: 8 kB / 481.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1369, allocations: 0 / 481.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.1369, allocations: 7.938 kB / 481.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006788/0.1376, allocations: 0.502 MB / 482.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.1378, allocations: 128.8 kB / 482.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.1378, allocations: 8 kB / 482.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.138, allocations: 11.98 kB / 482.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.1381, allocations: 15.97 kB / 482.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.1381, allocations: 12 kB / 482.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.1383, allocations: 223 kB / 482.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1383, allocations: 4 kB / 482.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.1388, allocations: 96 kB / 482.7 MB, free: 13.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.001045/0.1399, allocations: 1.056 MB / 483.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1409, allocations: 0.6144 MB / 484.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.1409, allocations: 8.125 kB / 484.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.1411, allocations: 119.8 kB / 484.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.1416, allocations: 76.7 kB / 484.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005392/0.147, allocations: 4.064 MB / 488.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.1476, allocations: 0.8699 MB / 489.5 MB, free: 5.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.1479, allocations: 111.2 kB / 489.6 MB, free: 5.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.1481, allocations: 147.4 kB / 489.8 MB, free: 5.621 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1481, allocations: 0 / 489.8 MB, free: 5.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/0.1835, allocations: 7.486 MB / 497.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.782/9.966, allocations: 14.78 kB / 497.3 MB, free: 14.23 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)