Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001531/0.001531, 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.001798/0.001799, 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.355/1.355, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 60.72 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1075, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003454/0.111, allocations: 2.09 MB / 459.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002999/0.1141, allocations: 2.05 MB / 461.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.384e-05/0.1142, allocations: 0 / 461.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1144, allocations: 11.92 kB / 461.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.223e-05/0.1145, allocations: 27.84 kB / 461.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002264/0.1168, allocations: 0.8383 MB / 462 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.1169, allocations: 83.69 kB / 462.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.109e-05/0.117, allocations: 4.125 kB / 462.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.212e-05/0.117, allocations: 31.91 kB / 462.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.079e-05/0.1171, allocations: 51.75 kB / 462.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1172, allocations: 0 / 462.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001891/0.1191, allocations: 1.252 MB / 463.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.1191, allocations: 15.88 kB / 463.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.334e-05/0.1192, allocations: 23.84 kB / 463.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.1209, allocations: 1.314 MB / 464.8 MB, free: 156 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1209, allocations: 0 / 464.8 MB, free: 156 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1209, allocations: 0 / 464.8 MB, free: 156 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1209, allocations: 0 / 464.8 MB, free: 156 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007758/0.1217, allocations: 0.497 MB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1218, allocations: 19.83 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.478e-05/0.1218, allocations: 30.75 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.1219, allocations: 8.844 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.1221, allocations: 194.3 kB / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1221, allocations: 0 / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-06/0.1221, allocations: 3.938 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.1222, allocations: 57.67 kB / 465.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1222, allocations: 0 / 465.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1222, allocations: 0 / 465.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1223, allocations: 0 / 465.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.409e-05/0.1223, allocations: 23.98 kB / 465.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1225, allocations: 169.5 kB / 465.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.881e-05/0.1225, allocations: 50.52 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.316e-05/0.1226, allocations: 32.88 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-06/0.1226, allocations: 4 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.1226, allocations: 34.56 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.1226, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002572/0.1229, allocations: 151.3 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.123, allocations: 81.11 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.478e-05/0.1231, allocations: 125.9 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1231, allocations: 29.7 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.1231, allocations: 88.14 kB / 466.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.1232, allocations: 31.69 kB / 466.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.042e-05/0.1232, allocations: 21.72 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1233, allocations: 318.8 kB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.024e-05/0.1234, allocations: 23.98 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.426e-05/0.1234, allocations: 23.98 kB / 466.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1236, allocations: 128.3 kB / 466.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1236, allocations: 0 / 466.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001548/0.1237, allocations: 131.5 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.1238, allocations: 41.69 kB / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1238, allocations: 0 / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1238, allocations: 0 / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.985e-06/0.1238, allocations: 0 / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.1238, allocations: 7.922 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.913e-05/0.1239, allocations: 4 kB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.1239, allocations: 4 kB / 467.1 MB, free: 13.58 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.0001116/0.124, allocations: 163.5 kB / 467.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.124, allocations: 7.906 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.774e-05/0.1241, allocations: 8.375 kB / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1241, allocations: 0 / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1241, allocations: 0 / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1241, allocations: 0 / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1242, allocations: 181.5 kB / 467.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1242, allocations: 0 / 467.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.134e-06/0.1242, allocations: 4 kB / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1242, allocations: 0 / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1243, allocations: 11.94 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1243, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1243, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.1245, allocations: 222.5 kB / 467.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.1246, allocations: 85.02 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.1246, allocations: 0 / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.614e-05/0.1246, allocations: 4 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.71e-05/0.1246, allocations: 0 / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.1247, allocations: 12.02 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.623e-05/0.1247, allocations: 95.27 kB / 467.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1247, allocations: 0 / 467.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000925/0.1257, allocations: 323.8 kB / 468.2 MB, free: 12.37 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.001473/0.1271, allocations: 1.011 MB / 469.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002322/0.1274, allocations: 203.3 kB / 469.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1274, allocations: 0 / 469.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1275, allocations: 147.4 kB / 469.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.1278, allocations: 8 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.1296, allocations: 1.691 MB / 471.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1299, allocations: 0.6924 MB / 471.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.487e-05/0.1299, allocations: 4 kB / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.1299, allocations: 19.42 kB / 471.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.13, allocations: 0 / 471.9 MB, free: 8.438 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].