Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.0009424/0.0009423, allocations: 106.4 kB / 16.51 MB, free: 6.719 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.0009833/0.0009834, allocations: 190.5 kB / 17.43 MB, free: 6.062 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.261/1.261, allocations: 222.9 MB / 241.1 MB, free: 15.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1616/0.1616, allocations: 38.05 MB / 329.3 MB, free: 9.105 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 68.17 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09017, allocations: 58.06 MB / 456.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003124/0.09333, allocations: 2.135 MB / 458.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.09635, allocations: 2.172 MB / 460.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.09641, allocations: 0 / 460.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.09659, allocations: 11.92 kB / 460.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.057e-05/0.09668, allocations: 31.84 kB / 460.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.09819, allocations: 0.6923 MB / 461.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.09832, allocations: 115.7 kB / 461.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.09837, allocations: 8.172 kB / 461.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.326e-05/0.09844, allocations: 35.91 kB / 461.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.268e-05/0.09853, allocations: 51.7 kB / 461.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.09854, allocations: 0 / 461.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.1001, allocations: 1.236 MB / 462.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.405e-05/0.1001, allocations: 11.94 kB / 462.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.264e-05/0.1001, allocations: 19.86 kB / 462.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.1013, allocations: 1.267 MB / 464 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1014, allocations: 4 kB / 464 MB, free: 0.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1014, allocations: 0 / 464 MB, free: 0.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1014, allocations: 0 / 464 MB, free: 0.625 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005319/0.1019, allocations: 0.497 MB / 464.5 MB, free: 76 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1019, allocations: 12.03 kB / 464.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.102, allocations: 34.75 kB / 464.6 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.102, allocations: 8.844 kB / 464.6 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.1022, allocations: 187.4 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-06/0.1022, allocations: 0 / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.1022, allocations: 0 / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1023, allocations: 61.67 kB / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-06/0.1024, allocations: 0 / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.1024, allocations: 0 / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.1024, allocations: 0 / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.997e-05/0.1024, allocations: 27.92 kB / 464.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001317/0.1026, allocations: 165.5 kB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.909e-05/0.1026, allocations: 50.55 kB / 465.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.083e-05/0.1027, allocations: 32.88 kB / 465.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-06/0.1027, allocations: 4 kB / 465.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.1027, allocations: 34.56 kB / 465.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1027, allocations: 0 / 465.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002376/0.103, allocations: 151.3 kB / 465.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.103, allocations: 85.11 kB / 465.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.302e-05/0.1031, allocations: 123.8 kB / 465.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.1031, allocations: 25.7 kB / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.1032, allocations: 92.17 kB / 465.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.1032, allocations: 31.55 kB / 465.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.1033, allocations: 17.72 kB / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1034, allocations: 326.7 kB / 466 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.749e-05/0.1034, allocations: 23.98 kB / 466 MB, free: 14.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.964e-05/0.1035, allocations: 20.23 kB / 466 MB, free: 14.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.1036, allocations: 136.4 kB / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1036, allocations: 0 / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001483/0.1038, allocations: 127.2 kB / 466.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.1038, allocations: 49.75 kB / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1038, allocations: 0 / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.1038, allocations: 3.938 kB / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1038, allocations: 0 / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1038, allocations: 0 / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.739e-05/0.1039, allocations: 7.938 kB / 466.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1039, allocations: 8 kB / 466.3 MB, free: 14.04 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.0001008/0.104, allocations: 151.5 kB / 466.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.104, allocations: 15.89 kB / 466.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.311e-05/0.1041, allocations: 12.38 kB / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.1041, allocations: 0 / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1041, allocations: 0 / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1041, allocations: 0 / 466.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1042, allocations: 169.6 kB / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1042, allocations: 3.984 kB / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1042, allocations: 0 / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.1042, allocations: 0 / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1042, allocations: 4 kB / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.1042, allocations: 0 / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1042, allocations: 3.938 kB / 466.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.1045, allocations: 222.6 kB / 466.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.224e-05/0.1045, allocations: 85 kB / 467 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.1045, allocations: 4 kB / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.167e-05/0.1046, allocations: 0 / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.1046, allocations: 4 kB / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.1046, allocations: 4 kB / 467 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.181e-05/0.1047, allocations: 91.27 kB / 467.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1047, allocations: 4.031 kB / 467.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006592/0.1053, allocations: 331.8 kB / 467.4 MB, free: 12.85 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.001219/0.1066, allocations: 1.015 MB / 468.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002272/0.1068, allocations: 195.3 kB / 468.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1068, allocations: 0 / 468.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.1069, allocations: 151.4 kB / 468.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.1072, allocations: 4 kB / 468.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.1087, allocations: 1.704 MB / 470.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.109, allocations: 0.7004 MB / 471.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.095e-05/0.109, allocations: 7.938 kB / 471.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.109, allocations: 15.44 kB / 471.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.109, allocations: 0 / 471.2 MB, free: 8.898 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].