Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001282/0.001282, allocations: 108.2 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.001154/0.001154, 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.427/1.427, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1782/0.1782, allocations: 38.03 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 66.59 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09223/0.09355, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003436/0.09702, allocations: 2.133 MB / 459.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.1, allocations: 2.05 MB / 461.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.743e-05/0.1001, allocations: 4 kB / 461.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.1003, allocations: 11.91 kB / 461.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.1004, allocations: 47.75 kB / 461.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.1027, allocations: 0.8266 MB / 462 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.1029, allocations: 95.62 kB / 462.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.1029, allocations: 7.984 kB / 462.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.781e-05/0.103, allocations: 39.78 kB / 462.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.465e-05/0.1031, allocations: 51.81 kB / 462.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.1031, allocations: 4 kB / 462.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.1051, allocations: 1.236 MB / 463.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-05/0.1051, allocations: 31.91 kB / 463.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.1052, allocations: 39.73 kB / 463.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001893/0.1071, allocations: 1.329 MB / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1071, allocations: 0 / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1071, allocations: 0 / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1072, allocations: 0 / 464.9 MB, free: 15.99 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007949/0.108, allocations: 0.5356 MB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.108, allocations: 15.89 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.527e-05/0.1081, allocations: 62.45 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.1081, allocations: 12.75 kB / 465.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.1084, allocations: 208 kB / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1084, allocations: 11.94 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.1084, allocations: 4 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.1086, allocations: 126.3 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.1086, allocations: 0 / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1087, allocations: 4 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1087, allocations: 4 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.1088, allocations: 75.36 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.1092, allocations: 360.9 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.1093, allocations: 78.48 kB / 466.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.935e-05/0.1094, allocations: 64.86 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-06/0.1094, allocations: 0 / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1095, allocations: 34.5 kB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.1095, allocations: 0 / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003953/0.1099, allocations: 234.3 kB / 466.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.1099, allocations: 85.11 kB / 466.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.1101, allocations: 157 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.1101, allocations: 25.7 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.551e-05/0.1102, allocations: 120 kB / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.1102, allocations: 47.2 kB / 467.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.503e-05/0.1103, allocations: 21.72 kB / 467.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1104, allocations: 322.8 kB / 467.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.163e-05/0.1105, allocations: 43.97 kB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.623e-05/0.1106, allocations: 39.97 kB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.1108, allocations: 184.1 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1108, allocations: 0 / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002297/0.111, allocations: 171.2 kB / 467.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.655e-05/0.1111, allocations: 49.67 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1111, allocations: 0 / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1111, allocations: 4 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1111, allocations: 0 / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1112, allocations: 0 / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.532e-05/0.1112, allocations: 7.906 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1112, allocations: 4 kB / 467.9 MB, free: 12.67 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.0001474/0.1114, allocations: 183.4 kB / 468.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.1114, allocations: 11.91 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.1115, allocations: 16.83 kB / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1115, allocations: 0 / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1115, allocations: 0 / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1115, allocations: 0 / 468.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.1117, allocations: 213.5 kB / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1117, allocations: 4 kB / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.1117, allocations: 0 / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1117, allocations: 0 / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.1117, allocations: 8 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.1118, allocations: 3.938 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1118, allocations: 0 / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.1122, allocations: 370 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.745e-05/0.1123, allocations: 92.86 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.1123, allocations: 4 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.1124, allocations: 4 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.1124, allocations: 0 / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.1124, allocations: 8.031 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.992e-05/0.1125, allocations: 121.7 kB / 468.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1125, allocations: 3.938 kB / 468.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009344/0.1134, allocations: 331.9 kB / 469.3 MB, free: 11.21 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.0017/0.1152, allocations: 1.288 MB / 470.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.1156, allocations: 335.3 kB / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1156, allocations: 0 / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.1158, allocations: 255.3 kB / 471.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.1162, allocations: 23.97 kB / 471.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.1187, allocations: 2.296 MB / 473.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.1191, allocations: 0.7275 MB / 474.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.775e-05/0.1191, allocations: 0 / 474.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.1192, allocations: 39.42 kB / 474.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1192, allocations: 0 / 474.2 MB, free: 6.102 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].