Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001121/0.001121, allocations: 107.3 kB / 16.92 MB, free: 5.785 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.001127/0.001128, allocations: 191.3 kB / 17.85 MB, free: 5.16 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.321/1.321, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1739/0.1739, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 66.86 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.09664, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.00336/0.1, allocations: 2.094 MB / 459.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1031, allocations: 2.047 MB / 461.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.038e-05/0.1032, allocations: 0 / 461.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1033, allocations: 11.86 kB / 461.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.475e-05/0.1034, allocations: 39.83 kB / 461.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.1057, allocations: 0.8306 MB / 462 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1058, allocations: 79.64 kB / 462.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.562e-05/0.1059, allocations: 4.188 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.961e-05/0.106, allocations: 31.91 kB / 462.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.2e-05/0.1061, allocations: 47.75 kB / 462.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.1061, allocations: 0 / 462.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.108, allocations: 1.263 MB / 463.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.094e-05/0.108, allocations: 27.91 kB / 463.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.698e-05/0.1081, allocations: 47.61 kB / 463.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.1098, allocations: 1.341 MB / 464.8 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1098, allocations: 3.938 kB / 464.8 MB, free: 56 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1098, allocations: 0 / 464.8 MB, free: 56 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1098, allocations: 0 / 464.8 MB, free: 56 kB / 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.0007494/0.1106, allocations: 0.5552 MB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1106, allocations: 15.89 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.016e-05/0.1107, allocations: 38.75 kB / 465.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.1107, allocations: 12.75 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.1109, allocations: 211.3 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.096e-06/0.1109, allocations: 0 / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.111, allocations: 4 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.1111, allocations: 100.4 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.1111, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.1111, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.1111, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.624e-05/0.1112, allocations: 71.83 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.1114, allocations: 189.5 kB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.1115, allocations: 94.55 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.1116, allocations: 92.86 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.1116, allocations: 0 / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.1117, allocations: 34.5 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 9.42e-07/0.1117, allocations: 4 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004663/0.1122, allocations: 315.5 kB / 466.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.1122, allocations: 97.09 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.1124, allocations: 152.5 kB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1124, allocations: 29.7 kB / 466.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.1124, allocations: 96.58 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.1125, allocations: 82.73 kB / 467 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.1126, allocations: 29.7 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1127, allocations: 338.7 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.373e-05/0.1128, allocations: 63.97 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-05/0.1129, allocations: 67.91 kB / 467.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.1132, allocations: 250.6 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1132, allocations: 0 / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003086/0.1135, allocations: 238.5 kB / 468 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.697e-05/0.1136, allocations: 69.66 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1136, allocations: 0 / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.1136, allocations: 0 / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1136, allocations: 0 / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1136, allocations: 4.062 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.1137, allocations: 11.84 kB / 468 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.1137, allocations: 8 kB / 468 MB, free: 12.57 MB / 350.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.0002114/0.1139, allocations: 195.4 kB / 468.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.114, allocations: 19.8 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.114, allocations: 17.12 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.114, allocations: 3.938 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.114, allocations: 0 / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.114, allocations: 0 / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.1142, allocations: 217.4 kB / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1142, allocations: 0 / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.1142, allocations: 0 / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1143, allocations: 0 / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.1143, allocations: 4 kB / 468.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1143, allocations: 0 / 468.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1143, allocations: 0 / 468.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.1149, allocations: 0.5139 MB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.902e-05/0.1149, allocations: 92.86 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.115, allocations: 8.031 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.006e-05/0.115, allocations: 4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.115, allocations: 8 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1151, allocations: 4 kB / 469.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.053e-05/0.1151, allocations: 118.7 kB / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1151, allocations: 0 / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008781/0.116, allocations: 336 kB / 469.6 MB, free: 10.94 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.001765/0.1178, allocations: 1.327 MB / 470.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.1185, allocations: 0.7138 MB / 471.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1185, allocations: 0 / 471.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004493/0.1189, allocations: 0.5813 MB / 472.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1192, allocations: 16 kB / 472.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.1219, allocations: 2.641 MB / 474.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.1222, allocations: 0.7278 MB / 475.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.325e-05/0.1222, allocations: 3.938 kB / 475.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.1223, allocations: 31.42 kB / 475.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1223, allocations: 0 / 475.6 MB, free: 4.734 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].