Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_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.0008875/0.0008875, allocations: 96.64 kB / 16.3 MB, free: 5.656 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.0008969/0.000897, allocations: 183.2 kB / 17.2 MB, free: 5.59 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.247/1.247, allocations: 223.2 MB / 241.1 MB, free: 412 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.09 MB / 330.3 MB, free: 8.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002767/0.0002767, allocations: 9.031 kB / 400.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09313, allocations: 59.18 MB / 459.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002128/0.0953, allocations: 1.76 MB / 461 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.09795, allocations: 1.901 MB / 462.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.778e-05/0.09801, allocations: 0 / 462.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.09814, allocations: 15.95 kB / 462.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.871e-05/0.09818, allocations: 15.92 kB / 462.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.09959, allocations: 0.593 MB / 463.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.449e-05/0.09966, allocations: 43.88 kB / 463.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.684e-05/0.09971, allocations: 4.172 kB / 463.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.507e-05/0.09978, allocations: 27.92 kB / 463.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.062e-05/0.09985, allocations: 39.83 kB / 463.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.09986, allocations: 4 kB / 463.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.1012, allocations: 0.9788 MB / 464.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.06e-05/0.1012, allocations: 43.91 kB / 464.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.1013, allocations: 41.58 kB / 464.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009326/0.1023, allocations: 0.9475 MB / 465.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1023, allocations: 0 / 465.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1023, allocations: 0 / 465.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.1023, allocations: 0 / 465.6 MB, free: 0.8984 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005413/0.1029, allocations: 0.5939 MB / 466.2 MB, free: 256 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.1029, allocations: 8.031 kB / 466.2 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.1029, allocations: 54.55 kB / 466.3 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.103, allocations: 15.72 kB / 466.3 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.1032, allocations: 206.7 kB / 466.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-06/0.1032, allocations: 0 / 466.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1032, allocations: 4 kB / 466.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.1034, allocations: 142.5 kB / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.388e-06/0.1034, allocations: 0 / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1035, allocations: 0 / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.1035, allocations: 0 / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.1036, allocations: 100.3 kB / 466.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001716/0.1037, allocations: 210 kB / 467 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.1039, allocations: 158.9 kB / 467.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-06/0.1039, allocations: 0 / 467.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.1039, allocations: 34.5 kB / 467.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 7.22e-07/0.1039, allocations: 0 / 467.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006868/0.1046, allocations: 0.5784 MB / 467.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.1047, allocations: 109.1 kB / 467.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.1048, allocations: 170.4 kB / 468 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.1048, allocations: 25.7 kB / 468 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.1049, allocations: 108.8 kB / 468.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.105, allocations: 122 kB / 468.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/0.105, allocations: 7.938 kB / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1051, allocations: 338.8 kB / 468.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.01e-05/0.1052, allocations: 91.95 kB / 468.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.143e-05/0.1053, allocations: 100.9 kB / 468.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.1055, allocations: 193.9 kB / 469 MB, free: 13.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1055, allocations: 0 / 469 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003358/0.1058, allocations: 338.9 kB / 469.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-05/0.1059, allocations: 85.62 kB / 469.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1059, allocations: 0 / 469.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.1059, allocations: 4 kB / 469.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1059, allocations: 0 / 469.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.407e-06/0.106, allocations: 0 / 469.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.106, allocations: 15.84 kB / 469.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.1061, allocations: 8 kB / 469.4 MB, free: 12.85 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001845/0.1062, allocations: 235.5 kB / 469.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.1063, allocations: 27.67 kB / 469.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.1063, allocations: 18.64 kB / 469.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1063, allocations: 3.984 kB / 469.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.1063, allocations: 0 / 469.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1063, allocations: 7.938 kB / 469.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.1066, allocations: 241.2 kB / 469.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1066, allocations: 0 / 469.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1066, allocations: 0 / 469.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1066, allocations: 3.953 kB / 469.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.1066, allocations: 15.94 kB / 469.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1066, allocations: 0 / 469.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1066, allocations: 0 / 469.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.1076, allocations: 0.9199 MB / 470.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.1077, allocations: 96.77 kB / 471 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.904e-05/0.1078, allocations: 11.95 kB / 471 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.1078, allocations: 4 kB / 471 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.1079, allocations: 8 kB / 471 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.1079, allocations: 12.03 kB / 471 MB, free: 11.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.439e-05/0.108, allocations: 131.2 kB / 471.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.108, allocations: 0 / 471.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008095/0.1088, allocations: 359.8 kB / 471.5 MB, free: 10.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001938/0.1108, allocations: 1.694 MB / 473.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.1123, allocations: 1.597 MB / 474.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1123, allocations: 0 / 474.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00099/0.1133, allocations: 1.366 MB / 476.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/0.1135, allocations: 15.94 kB / 476.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.1161, allocations: 2.056 MB / 478.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.1164, allocations: 0.7598 MB / 479 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.067e-05/0.1164, allocations: 0 / 479 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.1164, allocations: 51.41 kB / 479 MB, free: 2.996 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1165, allocations: 4 kB / 479 MB, free: 2.992 MB / 350.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).