Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001165/0.001165, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.001293/0.001293, allocations: 187.3 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.341/1.341, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 61.22 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09497, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003329/0.09833, allocations: 2.09 MB / 459.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.1011, allocations: 2.039 MB / 461.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.224e-05/0.1012, allocations: 0 / 461.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.1013, allocations: 19.92 kB / 461.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.383e-05/0.1015, allocations: 27.83 kB / 461.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.1037, allocations: 0.8398 MB / 462 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1038, allocations: 83.62 kB / 462.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.1039, allocations: 4.188 kB / 462.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.654e-05/0.104, allocations: 31.89 kB / 462.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.545e-05/0.104, allocations: 51.77 kB / 462.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.1041, allocations: 0 / 462.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001822/0.1059, allocations: 1.255 MB / 463.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.267e-05/0.106, allocations: 43.84 kB / 463.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.697e-05/0.1061, allocations: 63.42 kB / 463.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001688/0.1077, allocations: 1.372 MB / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1078, allocations: 0 / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1078, allocations: 0 / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1078, allocations: 0 / 464.9 MB, free: 16 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008912/0.1087, allocations: 0.6057 MB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1087, allocations: 11.89 kB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.917e-05/0.1088, allocations: 50.73 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.1089, allocations: 16.66 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.1091, allocations: 219.8 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1091, allocations: 3.938 kB / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.1091, allocations: 0 / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.1093, allocations: 146.5 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1093, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1094, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.1094, allocations: 7.984 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.1095, allocations: 96.28 kB / 466 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.1097, allocations: 217.6 kB / 466.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.1099, allocations: 162.5 kB / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.11, allocations: 140.9 kB / 466.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.11, allocations: 0 / 466.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.1101, allocations: 38.55 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.62e-07/0.1101, allocations: 0 / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006436/0.1107, allocations: 491.6 kB / 467.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.1108, allocations: 109.1 kB / 467.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.1109, allocations: 170.4 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.111, allocations: 25.7 kB / 467.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.111, allocations: 104.8 kB / 467.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.1111, allocations: 126.1 kB / 467.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/0.1112, allocations: 33.7 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1113, allocations: 350.7 kB / 468 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-05/0.1114, allocations: 95.95 kB / 468.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.1115, allocations: 100.9 kB / 468.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.1119, allocations: 380.3 kB / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1119, allocations: 0 / 468.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003489/0.1122, allocations: 335 kB / 468.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.386e-05/0.1123, allocations: 85.62 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.1123, allocations: 0 / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1123, allocations: 0 / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.275e-06/0.1123, allocations: 8.062 kB / 468.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1123, allocations: 4 kB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.129e-05/0.1124, allocations: 23.69 kB / 469 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.1125, allocations: 15.88 kB / 469 MB, free: 11.64 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.000189/0.1126, allocations: 239.3 kB / 469.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.1127, allocations: 19.81 kB / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.787e-05/0.1127, allocations: 18.64 kB / 469.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1127, allocations: 0 / 469.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1127, allocations: 0 / 469.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1127, allocations: 7.938 kB / 469.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.1129, allocations: 237.2 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1129, allocations: 0 / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1129, allocations: 4 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1129, allocations: 0 / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.113, allocations: 8 kB / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.113, allocations: 0 / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.113, allocations: 0 / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009221/0.1139, allocations: 0.9198 MB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.114, allocations: 104.7 kB / 470.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.114, allocations: 4 kB / 470.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.421e-05/0.1141, allocations: 8 kB / 470.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.1141, allocations: 7.938 kB / 470.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.1141, allocations: 12 kB / 470.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.369e-05/0.1142, allocations: 124.2 kB / 470.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1142, allocations: 0 / 470.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008432/0.1151, allocations: 355.9 kB / 471 MB, free: 9.484 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.002262/0.1173, allocations: 1.718 MB / 472.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.1188, allocations: 1.604 MB / 474.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1188, allocations: 4.094 kB / 474.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009851/0.1198, allocations: 1.366 MB / 475.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.12, allocations: 27.89 kB / 475.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.1236, allocations: 3.63 MB / 479.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.124, allocations: 0.7555 MB / 480.1 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.321e-05/0.124, allocations: 3.938 kB / 480.1 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.124, allocations: 43.42 kB / 480.2 MB, free: 164 kB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.124, allocations: 4.031 kB / 480.2 MB, free: 160 kB / 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].