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.001451/0.001451, allocations: 106.5 kB / 16.92 MB, free: 5.785 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.001813/0.001813, allocations: 191.3 kB / 17.85 MB, free: 5.16 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.332/1.332, 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/package.mo): time 0.1749/0.1749, allocations: 38.02 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 61.14 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09103, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003009/0.09407, allocations: 2.101 MB / 459.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.09669, allocations: 2.046 MB / 461.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.776e-05/0.09674, allocations: 0 / 461.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.09687, allocations: 7.922 kB / 461.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.12e-05/0.09696, allocations: 35.83 kB / 461.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.09871, allocations: 0.8305 MB / 462 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.09884, allocations: 95.55 kB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.383e-05/0.09888, allocations: 4.188 kB / 462.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.624e-05/0.09895, allocations: 27.91 kB / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.218e-05/0.09903, allocations: 51.75 kB / 462.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.09905, allocations: 4 kB / 462.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001494/0.1005, allocations: 1.255 MB / 463.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.1006, allocations: 43.83 kB / 463.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.289e-05/0.1007, allocations: 51.5 kB / 463.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.1021, allocations: 1.384 MB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.1021, allocations: 0 / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1021, allocations: 0 / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1022, allocations: 0 / 464.9 MB, free: 15.96 MB / 350.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.0007442/0.1029, allocations: 0.6048 MB / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1029, allocations: 15.89 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.103, allocations: 42.73 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.323e-05/0.103, allocations: 24.59 kB / 465.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.1032, allocations: 215.8 kB / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.1033, allocations: 4 kB / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.1033, allocations: 0 / 465.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.1035, allocations: 142.5 kB / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.1035, allocations: 0 / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1035, allocations: 0 / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1035, allocations: 4 kB / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.1037, allocations: 96.3 kB / 466 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.1039, allocations: 209.6 kB / 466.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.1041, allocations: 166.5 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.1042, allocations: 144.8 kB / 466.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.1042, allocations: 3.984 kB / 466.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1043, allocations: 38.56 kB / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.333e-06/0.1043, allocations: 0 / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006937/0.105, allocations: 487.6 kB / 467.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.1051, allocations: 113.1 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.1052, allocations: 166.4 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.1053, allocations: 33.62 kB / 467.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.1053, allocations: 104.8 kB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1055, allocations: 126.1 kB / 467.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.796e-05/0.1055, allocations: 41.69 kB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1057, allocations: 330.8 kB / 467.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.1058, allocations: 99.95 kB / 468 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.391e-05/0.1059, allocations: 96.94 kB / 468.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.1062, allocations: 384.3 kB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1062, allocations: 0 / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003554/0.1066, allocations: 342.9 kB / 468.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.85e-05/0.1067, allocations: 85.64 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1067, allocations: 3.984 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.1067, allocations: 4 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.786e-06/0.1067, allocations: 3.938 kB / 468.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1067, allocations: 0 / 468.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.25e-05/0.1068, allocations: 23.69 kB / 469 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1069, allocations: 8 kB / 469 MB, free: 11.6 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.0001957/0.1071, allocations: 243.3 kB / 469.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.1071, allocations: 23.81 kB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.794e-05/0.1071, allocations: 14.66 kB / 469.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1071, allocations: 0 / 469.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1071, allocations: 0 / 469.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1072, allocations: 3.938 kB / 469.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.1073, allocations: 237.2 kB / 469.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1073, allocations: 0 / 469.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.1073, allocations: 0 / 469.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1074, allocations: 4 kB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1074, allocations: 11.98 kB / 469.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1074, allocations: 0 / 469.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1074, allocations: 0 / 469.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.1083, allocations: 0.916 MB / 470.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.1084, allocations: 100.7 kB / 470.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.1084, allocations: 11.94 kB / 470.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.154e-05/0.1085, allocations: 4 kB / 470.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.1085, allocations: 16.02 kB / 470.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1085, allocations: 8 kB / 470.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.213e-05/0.1086, allocations: 128.2 kB / 470.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1086, allocations: 0 / 470.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009402/0.1096, allocations: 355.9 kB / 471 MB, free: 9.441 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.00225/0.1119, allocations: 1.722 MB / 472.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.1132, allocations: 1.6 MB / 474.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.1132, allocations: 0 / 474.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009799/0.1142, allocations: 1.374 MB / 475.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.1144, allocations: 15.91 kB / 475.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.1181, allocations: 3.638 MB / 479.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.1184, allocations: 0.7555 MB / 480.1 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.529e-05/0.1185, allocations: 7.938 kB / 480.1 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.797e-05/0.1185, allocations: 47.42 kB / 480.2 MB, free: 112 kB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1185, allocations: 0 / 480.2 MB, free: 112 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].