Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_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.001045/0.001045, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001021/0.001022, allocations: 193.8 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.293/1.293, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.166/0.166, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 69.69 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 58.07 MB / 456.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003626/0.1178, allocations: 2.135 MB / 458.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.1209, allocations: 2.047 MB / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.859e-05/0.121, allocations: 4 kB / 460.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.1212, allocations: 11.92 kB / 460.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.177e-05/0.1213, allocations: 31.89 kB / 460.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.123, allocations: 0.7551 MB / 461.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001324/0.1232, allocations: 79.69 kB / 461.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.591e-05/0.1232, allocations: 4.188 kB / 461.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.117e-05/0.1233, allocations: 35.83 kB / 461.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.916e-05/0.1234, allocations: 47.77 kB / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.1234, allocations: 0 / 461.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.1249, allocations: 1.255 MB / 462.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.033e-05/0.125, allocations: 19.86 kB / 462.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.125, allocations: 19.88 kB / 462.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.1264, allocations: 1.243 MB / 464.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1264, allocations: 0 / 464.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1264, allocations: 0 / 464.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1264, allocations: 0 / 464.1 MB, free: 0.6172 MB / 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.0006216/0.127, allocations: 0.497 MB / 464.6 MB, free: 68 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1271, allocations: 15.89 kB / 464.6 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.1271, allocations: 30.75 kB / 464.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.1272, allocations: 12.78 kB / 464.7 MB, free: 0 / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.1274, allocations: 191.3 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.1274, allocations: 4 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1274, allocations: 0 / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.1275, allocations: 53.67 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1276, allocations: 0 / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.1276, allocations: 0 / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1276, allocations: 0 / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.386e-05/0.1276, allocations: 31.97 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002245/0.1279, allocations: 169.5 kB / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.166e-05/0.1279, allocations: 50.52 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.579e-05/0.128, allocations: 32.88 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.128, allocations: 0 / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.128, allocations: 34.56 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.1281, allocations: 4 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002467/0.1283, allocations: 143.6 kB / 465.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.1284, allocations: 89.05 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.67e-05/0.1285, allocations: 121.8 kB / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1285, allocations: 25.7 kB / 465.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.1286, allocations: 92.14 kB / 465.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.1286, allocations: 27.55 kB / 465.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.1286, allocations: 17.72 kB / 465.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1288, allocations: 330.8 kB / 466.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.361e-05/0.1288, allocations: 19.98 kB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.195e-05/0.1288, allocations: 27.97 kB / 466.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.129, allocations: 124.2 kB / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.129, allocations: 0 / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001509/0.1291, allocations: 135.3 kB / 466.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.1292, allocations: 41.69 kB / 466.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1292, allocations: 0 / 466.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1292, allocations: 0 / 466.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1292, allocations: 0 / 466.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.1292, allocations: 4.062 kB / 466.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.032e-05/0.1293, allocations: 7.938 kB / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.1293, allocations: 7.938 kB / 466.4 MB, free: 14.04 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.0001263/0.1294, allocations: 163.5 kB / 466.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.1295, allocations: 7.906 kB / 466.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.613e-05/0.1295, allocations: 8.375 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1295, allocations: 0 / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1295, allocations: 0 / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1295, allocations: 0 / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.1296, allocations: 177.6 kB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1296, allocations: 4 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1296, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1296, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1297, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1297, allocations: 4 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1297, allocations: 0 / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.1299, allocations: 222.5 kB / 467 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.13, allocations: 88.98 kB / 467.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.13, allocations: 4 kB / 467.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.13, allocations: 0 / 467.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.573e-05/0.1301, allocations: 4 kB / 467.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.1301, allocations: 0 / 467.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.236e-05/0.1301, allocations: 102.6 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1301, allocations: 0 / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007005/0.1308, allocations: 315.9 kB / 467.5 MB, free: 12.85 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.001308/0.1322, allocations: 1.019 MB / 468.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.1324, allocations: 195.3 kB / 468.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1325, allocations: 0 / 468.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.1326, allocations: 155.5 kB / 468.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.1329, allocations: 8 kB / 468.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.1347, allocations: 1.71 MB / 470.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.135, allocations: 0.6924 MB / 471.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.523e-05/0.135, allocations: 8.031 kB / 471.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.1351, allocations: 23.36 kB / 471.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1351, allocations: 0 / 471.3 MB, free: 8.879 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].