Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_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.001186/0.001186, allocations: 103.8 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.001108/0.001108, 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.316/1.316, allocations: 222.9 MB / 241.5 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.1698/0.1698, allocations: 38.04 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 66.2 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 58.06 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.00311/0.1047, allocations: 2.143 MB / 459.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.1075, allocations: 2.05 MB / 461.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.738e-05/0.1075, allocations: 0 / 461.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.1077, allocations: 15.86 kB / 461.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1078, allocations: 39.81 kB / 461.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.1097, allocations: 0.8297 MB / 462 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.1098, allocations: 99.61 kB / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.075e-05/0.1099, allocations: 4 kB / 462.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.326e-05/0.11, allocations: 43.78 kB / 462.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.1101, allocations: 55.75 kB / 462.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.1101, allocations: 4 kB / 462.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001639/0.1117, allocations: 1.232 MB / 463.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.765e-05/0.1118, allocations: 31.91 kB / 463.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.993e-05/0.1119, allocations: 43.67 kB / 463.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.1132, allocations: 1.321 MB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1132, allocations: 0 / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1132, allocations: 0 / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1132, allocations: 0 / 464.9 MB, free: 15.98 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.0005838/0.1138, allocations: 0.5386 MB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1139, allocations: 12.03 kB / 465.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.203e-05/0.114, allocations: 74.36 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.064e-05/0.114, allocations: 12.75 kB / 465.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.1142, allocations: 204 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1142, allocations: 7.938 kB / 465.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.1142, allocations: 8 kB / 465.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.1144, allocations: 126.2 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.1145, allocations: 0 / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.1145, allocations: 0 / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1145, allocations: 4 kB / 465.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.1146, allocations: 68.19 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004008/0.115, allocations: 360.9 kB / 466.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.1151, allocations: 78.48 kB / 466.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.636e-05/0.1152, allocations: 64.8 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-06/0.1152, allocations: 4 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.1152, allocations: 30.56 kB / 466.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1152, allocations: 0 / 466.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003496/0.1156, allocations: 227.2 kB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.1157, allocations: 93.09 kB / 466.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1158, allocations: 153 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1158, allocations: 25.7 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.1159, allocations: 116 kB / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.1159, allocations: 55.19 kB / 467.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.925e-05/0.116, allocations: 21.7 kB / 467.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1161, allocations: 322.8 kB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.51e-05/0.1161, allocations: 43.92 kB / 467.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.93e-05/0.1162, allocations: 39.97 kB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.1163, allocations: 172.2 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1164, allocations: 3.938 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001953/0.1166, allocations: 178.3 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.187e-05/0.1166, allocations: 53.73 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1167, allocations: 0 / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1167, allocations: 4 kB / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1167, allocations: 0 / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1167, allocations: 0 / 467.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.103e-05/0.1167, allocations: 7.906 kB / 467.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.1168, allocations: 7.938 kB / 467.9 MB, free: 12.65 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.0001244/0.1169, allocations: 183.3 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.727e-05/0.1169, allocations: 11.91 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.117, allocations: 16.83 kB / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.117, allocations: 0 / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.117, allocations: 0 / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.117, allocations: 0 / 468.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.1172, allocations: 213.5 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1172, allocations: 0 / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-06/0.1172, allocations: 4 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1172, allocations: 0 / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.1172, allocations: 4 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1172, allocations: 0 / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1172, allocations: 3.984 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000341/0.1176, allocations: 369 kB / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.1176, allocations: 92.86 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.1177, allocations: 4 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.655e-05/0.1177, allocations: 4 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.251e-05/0.1178, allocations: 7.984 kB / 468.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.1178, allocations: 7.938 kB / 468.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.215e-05/0.1179, allocations: 117.7 kB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1179, allocations: 4.031 kB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008002/0.1187, allocations: 331.9 kB / 469.3 MB, free: 11.2 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.001457/0.1201, allocations: 1.285 MB / 470.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003503/0.1205, allocations: 331.3 kB / 470.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1205, allocations: 0 / 470.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.1207, allocations: 263.3 kB / 471.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.1211, allocations: 11.98 kB / 471.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.1233, allocations: 2.304 MB / 473.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.1236, allocations: 0.7314 MB / 474.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.704e-05/0.1236, allocations: 4 kB / 474.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.423e-05/0.1236, allocations: 35.42 kB / 474.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1237, allocations: 0 / 474.2 MB, free: 6.086 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].