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.000841/0.000841, allocations: 91.69 kB / 16.31 MB, free: 6.008 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.0007989/0.000799, allocations: 185.8 kB / 17.21 MB, free: 5.902 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.428/1.428, allocations: 223.2 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.326/0.326, allocations: 38.07 MB / 330.4 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004586/0.0004591, allocations: 8 kB / 400.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3771, allocations: 59.16 MB / 459.3 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003042/0.3802, allocations: 1.77 MB / 461.1 MB, free: 29.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003678/0.3839, allocations: 1.906 MB / 463 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.104e-05/0.384, allocations: 1.188 kB / 463 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.3842, allocations: 13.92 kB / 463 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.3843, allocations: 26.05 kB / 463 MB, free: 27.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002142/0.3865, allocations: 0.6439 MB / 463.7 MB, free: 27.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.3867, allocations: 98.48 kB / 463.8 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.111e-05/0.3868, allocations: 3.906 kB / 463.8 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.928e-05/0.3869, allocations: 42.58 kB / 463.8 MB, free: 27.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.387, allocations: 55.09 kB / 463.9 MB, free: 27.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.387, allocations: 7.094 kB / 463.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002268/0.3893, allocations: 1.054 MB / 464.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.938e-05/0.3894, allocations: 48.94 kB / 465 MB, free: 27.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.353e-05/0.3894, allocations: 38.86 kB / 465 MB, free: 27.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.3912, allocations: 0.9418 MB / 466 MB, free: 27.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3913, allocations: 5.25 kB / 466 MB, free: 27.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3913, allocations: 3.938 kB / 466 MB, free: 27.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.758e-06/0.3913, allocations: 0 / 466 MB, free: 27.06 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.0007849/0.3921, allocations: 0.5916 MB / 466.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.3921, allocations: 10.94 kB / 466.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.3922, allocations: 47.73 kB / 466.6 MB, free: 26.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.3922, allocations: 15.33 kB / 466.6 MB, free: 26.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.3924, allocations: 207.2 kB / 466.8 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.3924, allocations: 1.688 kB / 466.8 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.3925, allocations: 4 kB / 466.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.3927, allocations: 140.2 kB / 467 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3927, allocations: 0 / 467 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.3927, allocations: 1.562 kB / 467 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3928, allocations: 0 / 467 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.3929, allocations: 95.42 kB / 467.1 MB, free: 26.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.3931, allocations: 211.2 kB / 467.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.3933, allocations: 169.9 kB / 467.5 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3935, allocations: 148.6 kB / 467.6 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.583e-06/0.3935, allocations: 0 / 467.6 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.3935, allocations: 31.56 kB / 467.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 8.81e-07/0.3935, allocations: 1.406 kB / 467.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007545/0.3943, allocations: 498.1 kB / 468.1 MB, free: 25.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.3944, allocations: 108.2 kB / 468.2 MB, free: 25.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.3946, allocations: 166.8 kB / 468.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3946, allocations: 31.48 kB / 468.4 MB, free: 25.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.839e-05/0.3946, allocations: 104.7 kB / 468.5 MB, free: 25.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.3948, allocations: 126.3 kB / 468.6 MB, free: 25.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.3948, allocations: 0 / 468.6 MB, free: 25.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.076e-05/0.3949, allocations: 334.3 kB / 469 MB, free: 24.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.395, allocations: 98.48 kB / 469.1 MB, free: 24.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.3951, allocations: 96.05 kB / 469.2 MB, free: 24.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.3954, allocations: 191.8 kB / 469.3 MB, free: 24.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3954, allocations: 3.953 kB / 469.3 MB, free: 24.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004546/0.3959, allocations: 336.8 kB / 469.7 MB, free: 24.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.396, allocations: 86.66 kB / 469.8 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.396, allocations: 0 / 469.8 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.396, allocations: 4.844 kB / 469.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.396, allocations: 3.938 kB / 469.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.396, allocations: 1.031 kB / 469.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.832e-05/0.3961, allocations: 23.19 kB / 469.8 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/0.3962, allocations: 8.531 kB / 469.8 MB, free: 24.54 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.0002308/0.3964, allocations: 230 kB / 470 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.3964, allocations: 33.52 kB / 470.1 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.3965, allocations: 17.36 kB / 470.1 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3965, allocations: 4.75 kB / 470.1 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3965, allocations: 0 / 470.1 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3965, allocations: 1.219 kB / 470.1 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.3967, allocations: 232.4 kB / 470.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3967, allocations: 1.625 kB / 470.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-06/0.3967, allocations: 3.953 kB / 470.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3967, allocations: 1 kB / 470.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.3967, allocations: 8.016 kB / 470.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3967, allocations: 0.75 kB / 470.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3968, allocations: 7.938 kB / 470.3 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3979, allocations: 0.9163 MB / 471.3 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.398, allocations: 104.2 kB / 471.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.398, allocations: 10.02 kB / 471.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.94e-05/0.3981, allocations: 6.062 kB / 471.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.3981, allocations: 7.266 kB / 471.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.3981, allocations: 10.19 kB / 471.4 MB, free: 23.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.384e-05/0.3982, allocations: 128.7 kB / 471.5 MB, free: 23.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3982, allocations: 0 / 471.5 MB, free: 23.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0016/0.3999, allocations: 349.4 kB / 471.9 MB, free: 23.62 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.002576/0.4024, allocations: 1.711 MB / 473.6 MB, free: 22.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.4041, allocations: 1.594 MB / 475.2 MB, free: 21.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4042, allocations: 3.938 kB / 475.2 MB, free: 21.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.4055, allocations: 1.378 MB / 476.5 MB, free: 21.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.4059, allocations: 18.3 kB / 476.6 MB, free: 21.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/0.4095, allocations: 2.06 MB / 478.6 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.4098, allocations: 0.7565 MB / 479.4 MB, free: 19.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.665e-05/0.4098, allocations: 1.219 kB / 479.4 MB, free: 19.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.4099, allocations: 44.58 kB / 479.4 MB, free: 19.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4099, allocations: 3.938 kB / 479.4 MB, free: 19.21 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].