Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_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.001314/0.001314, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001428/0.001428, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.273/1.273, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1725/0.1725, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 62.56 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/0.09542, allocations: 58.06 MB / 456.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.004455/0.09992, allocations: 2.139 MB / 458.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003077/0.103, allocations: 2.051 MB / 460.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.555e-05/0.1031, allocations: 4 kB / 460.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.1033, allocations: 7.922 kB / 460.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.6e-05/0.1034, allocations: 35.77 kB / 460.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001859/0.1052, allocations: 0.7551 MB / 461.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.1054, allocations: 83.64 kB / 461.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.232e-05/0.1054, allocations: 12.17 kB / 461.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.389e-05/0.1055, allocations: 27.91 kB / 461.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.869e-05/0.1056, allocations: 55.75 kB / 461.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1056, allocations: 4 kB / 461.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001699/0.1073, allocations: 1.255 MB / 462.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.782e-05/0.1074, allocations: 47.77 kB / 462.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.734e-05/0.1074, allocations: 55.48 kB / 463 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.1088, allocations: 1.298 MB / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1088, allocations: 0 / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1088, allocations: 0 / 464.3 MB, free: 456 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1088, allocations: 0 / 464.3 MB, free: 456 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.0008016/0.1096, allocations: 0.6057 MB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1097, allocations: 11.89 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.883e-05/0.1097, allocations: 50.73 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.1098, allocations: 16.66 kB / 465 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.1101, allocations: 219.2 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.1101, allocations: 0 / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.1101, allocations: 0 / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.1103, allocations: 142.5 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1103, allocations: 3.984 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1103, allocations: 7.938 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1103, allocations: 0 / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.1105, allocations: 96.28 kB / 465.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.1106, allocations: 209.6 kB / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.1108, allocations: 166.5 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.111, allocations: 144.8 kB / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-06/0.111, allocations: 0 / 465.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.111, allocations: 34.56 kB / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.71e-07/0.111, allocations: 0 / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006448/0.1117, allocations: 491.6 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.1117, allocations: 113.1 kB / 466.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1119, allocations: 170.9 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.1119, allocations: 29.7 kB / 466.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.979e-05/0.112, allocations: 104.7 kB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.1121, allocations: 130.1 kB / 467 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.242e-05/0.1121, allocations: 33.7 kB / 467 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1123, allocations: 342.8 kB / 467.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.1125, allocations: 91.97 kB / 467.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.819e-05/0.1126, allocations: 100.9 kB / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.1129, allocations: 384.3 kB / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1129, allocations: 0 / 467.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003513/0.1133, allocations: 342.9 kB / 468.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.1135, allocations: 87.81 kB / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1135, allocations: 0 / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1135, allocations: 0 / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.976e-06/0.1135, allocations: 0 / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.1135, allocations: 3.938 kB / 468.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.253e-05/0.1136, allocations: 23.69 kB / 468.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.1136, allocations: 12 kB / 468.4 MB, free: 12.07 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.0001837/0.1138, allocations: 239.3 kB / 468.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.1138, allocations: 23.81 kB / 468.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.803e-05/0.1139, allocations: 14.66 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1139, allocations: 0 / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1139, allocations: 4 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.1139, allocations: 0 / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.1141, allocations: 237.2 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1141, allocations: 3.938 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1141, allocations: 0 / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1141, allocations: 7.984 kB / 468.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1141, allocations: 8 kB / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1141, allocations: 0 / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1141, allocations: 0 / 468.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1152, allocations: 0.916 MB / 469.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.1153, allocations: 100.7 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.1153, allocations: 8 kB / 469.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.123e-05/0.1154, allocations: 11.92 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.1154, allocations: 12.03 kB / 469.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1154, allocations: 8 kB / 469.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.471e-05/0.1155, allocations: 128.2 kB / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1155, allocations: 0 / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009932/0.1165, allocations: 355.9 kB / 470.4 MB, free: 9.914 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.002333/0.1189, allocations: 1.722 MB / 472.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.1203, allocations: 1.6 MB / 473.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1203, allocations: 0 / 473.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009858/0.1213, allocations: 1.374 MB / 475.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.1215, allocations: 19.84 kB / 475.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.1254, allocations: 3.711 MB / 478.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1258, allocations: 0.766 MB / 479.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.432e-05/0.1258, allocations: 0 / 479.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.309e-05/0.1259, allocations: 47.41 kB / 479.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1259, allocations: 3.938 kB / 479.7 MB, free: 0.5 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].