Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.001415/0.001415, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001254/0.001254, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.379/1.379, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1854/0.1854, allocations: 38.01 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001428, allocations: 64 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 58.07 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003933/0.1094, allocations: 2.028 MB / 459 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007973/0.1102, allocations: 0.526 MB / 459.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.53e-05/0.1103, allocations: 4 kB / 459.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1104, allocations: 7.922 kB / 459.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.1106, allocations: 23.91 kB / 459.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.1109, allocations: 75.77 kB / 459.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.111, allocations: 59.77 kB / 459.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.431e-05/0.1111, allocations: 4 kB / 459.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.221e-05/0.1112, allocations: 31.84 kB / 459.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.624e-05/0.1112, allocations: 23.91 kB / 459.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.1113, allocations: 0 / 459.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.1114, allocations: 79.84 kB / 459.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.1115, allocations: 43.84 kB / 459.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.927e-05/0.1116, allocations: 47.55 kB / 459.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.1118, allocations: 151.7 kB / 460.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1118, allocations: 3.984 kB / 460.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1118, allocations: 0 / 460.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1118, allocations: 0 / 460.1 MB, free: 4.824 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004547/0.1123, allocations: 480.5 kB / 460.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1123, allocations: 15.89 kB / 460.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.86e-05/0.1124, allocations: 42.73 kB / 460.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.356e-05/0.1124, allocations: 20.75 kB / 460.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.1126, allocations: 196.3 kB / 460.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1126, allocations: 4 kB / 460.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.1127, allocations: 8 kB / 460.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001622/0.1128, allocations: 126.6 kB / 460.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-06/0.1128, allocations: 0 / 460.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.1129, allocations: 3.938 kB / 460.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1129, allocations: 0 / 460.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.113, allocations: 96.23 kB / 461 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.1132, allocations: 202 kB / 461.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.1133, allocations: 150.9 kB / 461.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.1134, allocations: 145.2 kB / 461.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.1135, allocations: 0 / 461.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.1135, allocations: 30.56 kB / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 7.92e-07/0.1135, allocations: 0 / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005668/0.1141, allocations: 479.6 kB / 462 MB, free: 2.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.1141, allocations: 105.1 kB / 462.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.1143, allocations: 148.3 kB / 462.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.1143, allocations: 37.73 kB / 462.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.86e-05/0.1144, allocations: 88.8 kB / 462.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.1145, allocations: 133.9 kB / 462.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.1145, allocations: 37.7 kB / 462.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1147, allocations: 338.8 kB / 462.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.448e-05/0.1148, allocations: 87.97 kB / 463 MB, free: 1.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.718e-05/0.1149, allocations: 92.95 kB / 463.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.1152, allocations: 364.4 kB / 463.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1152, allocations: 4.031 kB / 463.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003082/0.1155, allocations: 326.9 kB / 463.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/0.1156, allocations: 89.62 kB / 463.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1156, allocations: 3.984 kB / 463.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1156, allocations: 0 / 463.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1156, allocations: 0 / 463.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-06/0.1156, allocations: 0 / 463.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.424e-05/0.1157, allocations: 19.75 kB / 463.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.1157, allocations: 8 kB / 463.9 MB, free: 0.7383 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.0002/0.1159, allocations: 239.3 kB / 464.1 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.1159, allocations: 19.81 kB / 464.1 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.66e-05/0.116, allocations: 9.969 kB / 464.1 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.116, allocations: 0 / 464.1 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.116, allocations: 3.984 kB / 464.1 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.116, allocations: 4 kB / 464.1 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1162, allocations: 237.1 kB / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1162, allocations: 0 / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.122e-06/0.1162, allocations: 0 / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1162, allocations: 0 / 464.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1162, allocations: 8 kB / 464.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1162, allocations: 7.984 kB / 464.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1162, allocations: 0 / 464.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009559/0.1172, allocations: 0.9082 MB / 465.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.1173, allocations: 96.77 kB / 465.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.1173, allocations: 8 kB / 465.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.331e-05/0.1174, allocations: 4 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.1174, allocations: 8 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1174, allocations: 8 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.721e-05/0.1175, allocations: 122.4 kB / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1175, allocations: 0 / 465.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.1178, allocations: 60 kB / 465.6 MB, free: 14.9 MB / 350.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.001278/0.1191, allocations: 1.465 MB / 467.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.1204, allocations: 1.589 MB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1204, allocations: 0 / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.1215, allocations: 1.37 MB / 470 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.1217, allocations: 19.94 kB / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1253, allocations: 3.429 MB / 473.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.1257, allocations: 0.7478 MB / 474.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.53e-05/0.1258, allocations: 256 / 474.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.1258, allocations: 47.45 kB / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1258, allocations: 0 / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.1468, allocations: 4.802 MB / 479.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.746, allocations: 6.812 kB / 479.1 MB, free: 1.355 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_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_matrixEqCirc3.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1)