Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001481/0.001481, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001673/0.001673, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.424/1.424, 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.1951/0.1951, allocations: 38.01 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 61.94 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1208, allocations: 58.07 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.004269/0.1251, allocations: 2.039 MB / 459 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009795/0.1261, allocations: 0.526 MB / 459.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.204e-05/0.1262, allocations: 0 / 459.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1264, allocations: 7.922 kB / 459.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.1265, allocations: 31.83 kB / 459.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004191/0.127, allocations: 63.84 kB / 459.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.1272, allocations: 63.72 kB / 459.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.55e-05/0.1272, allocations: 7.922 kB / 459.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.403e-05/0.1273, allocations: 27.91 kB / 459.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.288e-05/0.1274, allocations: 31.84 kB / 459.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.1274, allocations: 0 / 459.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.1276, allocations: 79.89 kB / 459.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.365e-05/0.1277, allocations: 27.86 kB / 459.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.189e-05/0.1278, allocations: 31.73 kB / 459.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.128, allocations: 131.8 kB / 460 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.128, allocations: 0 / 460 MB, free: 4.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.128, allocations: 0 / 460 MB, free: 4.863 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1281, allocations: 0 / 460 MB, free: 4.863 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005066/0.1286, allocations: 436.8 kB / 460.4 MB, free: 4.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.1286, allocations: 11.89 kB / 460.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.406e-05/0.1287, allocations: 42.73 kB / 460.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.1287, allocations: 12.75 kB / 460.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.1289, allocations: 188.1 kB / 460.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-06/0.1289, allocations: 4.375 kB / 460.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.129, allocations: 7.938 kB / 460.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.1291, allocations: 85.67 kB / 460.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.1292, allocations: 0 / 460.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-06/0.1292, allocations: 0 / 460.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1292, allocations: 0 / 460.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.958e-05/0.1293, allocations: 55.98 kB / 460.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002285/0.1295, allocations: 177.6 kB / 461 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.1296, allocations: 110.4 kB / 461.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.1298, allocations: 84.88 kB / 461.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-06/0.1298, allocations: 0 / 461.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1298, allocations: 38.55 kB / 461.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 9.32e-07/0.1298, allocations: 3.938 kB / 461.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004417/0.1303, allocations: 306.2 kB / 461.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.1304, allocations: 101.1 kB / 461.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.1305, allocations: 132.5 kB / 461.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1306, allocations: 29.73 kB / 461.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.1306, allocations: 96.56 kB / 461.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.1307, allocations: 78.8 kB / 462 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.1307, allocations: 21.72 kB / 462 MB, free: 2.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1309, allocations: 322.8 kB / 462.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.266e-05/0.1309, allocations: 59.97 kB / 462.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.592e-05/0.131, allocations: 55.98 kB / 462.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1312, allocations: 246.5 kB / 462.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1312, allocations: 7.969 kB / 462.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002604/0.1315, allocations: 223.2 kB / 462.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.463e-05/0.1316, allocations: 69.59 kB / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1316, allocations: 0 / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1316, allocations: 0 / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1316, allocations: 0 / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1316, allocations: 0 / 463 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.944e-05/0.1317, allocations: 11.84 kB / 463 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.1317, allocations: 8 kB / 463 MB, free: 1.629 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.1319, allocations: 199.4 kB / 463.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.1319, allocations: 15.81 kB / 463.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.132, allocations: 17.17 kB / 463.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.132, allocations: 0 / 463.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.132, allocations: 0 / 463.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.132, allocations: 0 / 463.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.1322, allocations: 201.4 kB / 463.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1322, allocations: 0 / 463.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1322, allocations: 0 / 463.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1322, allocations: 0 / 463.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1322, allocations: 4 kB / 463.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1322, allocations: 8 kB / 463.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1322, allocations: 0 / 463.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00056/0.1328, allocations: 0.5129 MB / 463.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.1328, allocations: 88.95 kB / 464 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.1329, allocations: 7.938 kB / 464 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.778e-05/0.1329, allocations: 4 kB / 464 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.124e-05/0.1329, allocations: 4 kB / 464 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.133, allocations: 4 kB / 464 MB, free: 480 kB / 334.1 MB Notification: Performance of sorting global known variables: time 7.547e-05/0.133, allocations: 111.3 kB / 464.1 MB, free: 368 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.133, allocations: 0 / 464.1 MB, free: 368 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.1333, allocations: 40 kB / 464.2 MB, free: 328 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.0009343/0.1343, allocations: 1.067 MB / 465.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006694/0.1349, allocations: 0.7023 MB / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.135, allocations: 0 / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004553/0.1354, allocations: 0.5696 MB / 466.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.1357, allocations: 19.98 kB / 466.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.1387, allocations: 2.446 MB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.139, allocations: 0.7238 MB / 469.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.245e-05/0.139, allocations: 0 / 469.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.33e-05/0.1391, allocations: 31.42 kB / 469.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1391, allocations: 0 / 469.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.162, allocations: 3.543 MB / 473.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.586, allocations: 10 kB / 473.3 MB, free: 7.129 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1)