Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.0008621/0.000862, allocations: 92.41 kB / 16.65 MB, free: 6.535 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.0009389/0.000939, allocations: 173.8 kB / 17.56 MB, free: 6.184 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.249/1.249, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1684/0.1684, allocations: 38.08 MB / 330.8 MB, free: 8.531 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003109, allocations: 8 kB / 400.8 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09186/0.09219, allocations: 59.17 MB / 460 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.00229/0.09452, allocations: 1.857 MB / 461.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.09602, allocations: 1.076 MB / 462.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.989e-05/0.09608, allocations: 0 / 462.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.09621, allocations: 7.922 kB / 462.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.09633, allocations: 55.78 kB / 463 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007297/0.09707, allocations: 243.5 kB / 463.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.09732, allocations: 267.3 kB / 463.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.124e-05/0.09737, allocations: 4 kB / 463.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.357e-05/0.09747, allocations: 47.84 kB / 463.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.09759, allocations: 83.7 kB / 463.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.09761, allocations: 4 kB / 463.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005739/0.09819, allocations: 403.2 kB / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.725e-05/0.09826, allocations: 35.89 kB / 464 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.016e-05/0.09832, allocations: 69.39 kB / 464.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005944/0.09892, allocations: 0.5224 MB / 464.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.09893, allocations: 0 / 464.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09894, allocations: 4 kB / 464.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.09895, allocations: 3.938 kB / 464.6 MB, free: 2.258 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004311/0.09939, allocations: 448.9 kB / 465.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.09943, allocations: 8.031 kB / 465.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.309e-05/0.09951, allocations: 66.38 kB / 465.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.09955, allocations: 16.75 kB / 465.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.09973, allocations: 204.1 kB / 465.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.09975, allocations: 384 / 465.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.09977, allocations: 11.94 kB / 465.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.09999, allocations: 133.6 kB / 465.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1, allocations: 0 / 465.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.1, allocations: 8 kB / 465.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.1, allocations: 0 / 465.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.1002, allocations: 91.94 kB / 465.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003821/0.1005, allocations: 352.3 kB / 466 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.1007, allocations: 138.5 kB / 466.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.1008, allocations: 116.9 kB / 466.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.1008, allocations: 0 / 466.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1008, allocations: 38.5 kB / 466.2 MB, free: 492 kB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 2.275e-06/0.1008, allocations: 0 / 466.2 MB, free: 492 kB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003991/0.1012, allocations: 291.2 kB / 466.5 MB, free: 188 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.1013, allocations: 97.09 kB / 466.6 MB, free: 72 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.1014, allocations: 132.2 kB / 466.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.1014, allocations: 29.7 kB / 466.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.148e-05/0.1015, allocations: 108.4 kB / 466.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.1015, allocations: 63.03 kB / 466.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.1016, allocations: 25.7 kB / 467 MB, free: 15.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.119e-05/0.1017, allocations: 322.8 kB / 467.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.039e-05/0.1018, allocations: 55.97 kB / 467.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.562e-05/0.1018, allocations: 55.97 kB / 467.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.102, allocations: 231.2 kB / 467.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.102, allocations: 4.031 kB / 467.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002552/0.1023, allocations: 227.1 kB / 467.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.875e-05/0.1024, allocations: 53.67 kB / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.1024, allocations: 0 / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1024, allocations: 4 kB / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1024, allocations: 0 / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1024, allocations: 0 / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.1025, allocations: 11.91 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.1025, allocations: 8 kB / 467.9 MB, free: 14.7 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.000131/0.1026, allocations: 183.5 kB / 468.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.1027, allocations: 23.78 kB / 468.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.209e-05/0.1027, allocations: 5.188 kB / 468.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1027, allocations: 3.938 kB / 468.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.1027, allocations: 3.984 kB / 468.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1027, allocations: 4 kB / 468.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.1029, allocations: 213.4 kB / 468.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1029, allocations: 0 / 468.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-06/0.1029, allocations: 3.938 kB / 468.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1029, allocations: 3.938 kB / 468.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.1029, allocations: 8 kB / 468.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.103, allocations: 4 kB / 468.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.103, allocations: 3.984 kB / 468.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.1034, allocations: 447.7 kB / 468.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1034, allocations: 96.8 kB / 468.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.1035, allocations: 4 kB / 468.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.027e-05/0.1035, allocations: 4 kB / 468.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.661e-05/0.1036, allocations: 4 kB / 468.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.1036, allocations: 16.02 kB / 468.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.785e-05/0.1037, allocations: 101.5 kB / 469 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1037, allocations: 0 / 469 MB, free: 13.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000464/0.1041, allocations: 135.9 kB / 469.2 MB, free: 13.36 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.00119/0.1053, allocations: 1.246 MB / 470.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005107/0.1058, allocations: 0.5578 MB / 471 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1059, allocations: 0 / 471 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.1062, allocations: 471.4 kB / 471.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.1065, allocations: 15.94 kB / 471.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.1089, allocations: 2.485 MB / 473.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1092, allocations: 0.7318 MB / 474.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.069e-05/0.1092, allocations: 12.02 kB / 474.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.111e-05/0.1093, allocations: 35.44 kB / 474.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1093, allocations: 0 / 474.7 MB, free: 7.645 MB / 350.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].