Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_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.001434/0.001434, allocations: 109.4 kB / 16.92 MB, free: 5.781 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.00172/0.00172, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.433/1.433, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 65.44 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.0047/0.1122, allocations: 2.106 MB / 459.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003739/0.116, allocations: 2.039 MB / 461.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1161, allocations: 0 / 461.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.1164, allocations: 11.86 kB / 461.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.1166, allocations: 31.84 kB / 461.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002794/0.1194, allocations: 0.8306 MB / 462 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.1196, allocations: 87.61 kB / 462.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.958e-05/0.1196, allocations: 8.188 kB / 462.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.846e-05/0.1197, allocations: 27.92 kB / 462.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.578e-05/0.1198, allocations: 47.77 kB / 462.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.1198, allocations: 4 kB / 462.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.1219, allocations: 1.259 MB / 463.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.7e-05/0.122, allocations: 27.91 kB / 463.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.197e-05/0.1221, allocations: 39.62 kB / 463.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00263/0.1247, allocations: 1.353 MB / 464.8 MB, free: 64 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1247, allocations: 3.938 kB / 464.8 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1247, allocations: 0 / 464.8 MB, free: 60 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1248, allocations: 0 / 464.8 MB, free: 60 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.001217/0.126, allocations: 0.5513 MB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.126, allocations: 11.89 kB / 465.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.331e-05/0.1261, allocations: 42.73 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.526e-05/0.1262, allocations: 12.75 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.1264, allocations: 199.4 kB / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.1264, allocations: 4 kB / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.1265, allocations: 4 kB / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1267, allocations: 104.4 kB / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1267, allocations: 0 / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1267, allocations: 0 / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1267, allocations: 0 / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.43e-05/0.1268, allocations: 67.83 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.127, allocations: 185.5 kB / 466 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.1272, allocations: 106.5 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.809e-05/0.1273, allocations: 84.86 kB / 466.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.1273, allocations: 0 / 466.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.1273, allocations: 34.5 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.1273, allocations: 4 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005178/0.1278, allocations: 319.5 kB / 466.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.1279, allocations: 89.11 kB / 466.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.1281, allocations: 160.5 kB / 466.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1281, allocations: 29.73 kB / 466.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.1281, allocations: 108.5 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.679e-05/0.1282, allocations: 74.75 kB / 467 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.78e-05/0.1283, allocations: 29.7 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1284, allocations: 330.8 kB / 467.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.146e-05/0.1285, allocations: 63.97 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.751e-05/0.1286, allocations: 63.91 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.1288, allocations: 250.6 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1289, allocations: 4.031 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002642/0.1291, allocations: 239 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.1292, allocations: 65.66 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.1292, allocations: 0 / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1292, allocations: 0 / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1292, allocations: 0 / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1292, allocations: 0 / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.1293, allocations: 15.84 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.1293, allocations: 4 kB / 468 MB, free: 12.59 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.0001521/0.1295, allocations: 199.5 kB / 468.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.1295, allocations: 15.81 kB / 468.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.1296, allocations: 21.11 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1296, allocations: 3.938 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1296, allocations: 4 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1296, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.1297, allocations: 209.4 kB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1297, allocations: 0 / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1298, allocations: 0 / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1298, allocations: 0 / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1298, allocations: 7.984 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1298, allocations: 4 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1298, allocations: 4 kB / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005659/0.1304, allocations: 0.5095 MB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.699e-05/0.1304, allocations: 96.84 kB / 469.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.1305, allocations: 4 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.184e-05/0.1305, allocations: 4 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.1306, allocations: 8 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.1306, allocations: 16.02 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.077e-05/0.1307, allocations: 111.2 kB / 469.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 0 / 469.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001001/0.1317, allocations: 336 kB / 469.6 MB, free: 10.95 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.002216/0.1339, allocations: 1.334 MB / 470.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.1348, allocations: 0.7139 MB / 471.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1348, allocations: 0 / 471.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005544/0.1354, allocations: 0.5695 MB / 472.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.1357, allocations: 19.08 kB / 472.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.1391, allocations: 2.641 MB / 474.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.1394, allocations: 0.7238 MB / 475.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.545e-05/0.1394, allocations: 7.969 kB / 475.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.1395, allocations: 39.36 kB / 475.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1395, allocations: 0 / 475.6 MB, free: 4.742 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].