Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_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.001025/0.001025, allocations: 106.9 kB / 16.62 MB, free: 6.809 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.001127/0.001127, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.295/1.295, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1742/0.1742, allocations: 38.02 MB / 329.4 MB, free: 8.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 61.28 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.1012, allocations: 58.07 MB / 456.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003817/0.105, allocations: 2.201 MB / 458.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1067, allocations: 1.06 MB / 459.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.087e-05/0.1068, allocations: 0 / 459.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.1069, allocations: 15.92 kB / 459.7 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.1071, allocations: 51.84 kB / 459.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009339/0.108, allocations: 259.4 kB / 460 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.1082, allocations: 119.6 kB / 460.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.1083, allocations: 4 kB / 460.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.1084, allocations: 51.81 kB / 460.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.1086, allocations: 75.73 kB / 460.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.1086, allocations: 4 kB / 460.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006675/0.1093, allocations: 415.1 kB / 460.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.737e-05/0.1094, allocations: 35.89 kB / 460.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.57e-05/0.1094, allocations: 43.67 kB / 460.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000879/0.1103, allocations: 0.503 MB / 461.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1103, allocations: 0 / 461.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1103, allocations: 0 / 461.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1103, allocations: 4 kB / 461.3 MB, free: 3.453 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.0006884/0.111, allocations: 464.8 kB / 461.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.1111, allocations: 15.83 kB / 461.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.962e-05/0.1112, allocations: 66.38 kB / 461.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.541e-05/0.1113, allocations: 12.84 kB / 461.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.1115, allocations: 196 kB / 462 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.1115, allocations: 12.31 kB / 462 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.1116, allocations: 11.94 kB / 462 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.1118, allocations: 133.6 kB / 462.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.1119, allocations: 0 / 462.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.1119, allocations: 0 / 462.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1119, allocations: 8 kB / 462.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.112, allocations: 79.95 kB / 462.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.1126, allocations: 348.4 kB / 462.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.1127, allocations: 138.5 kB / 462.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1128, allocations: 120.8 kB / 462.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.1129, allocations: 0 / 462.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1129, allocations: 34.5 kB / 462.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.162e-06/0.1129, allocations: 0 / 462.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005298/0.1134, allocations: 299.2 kB / 463.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.1135, allocations: 89.11 kB / 463.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.1137, allocations: 140.2 kB / 463.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.1137, allocations: 33.67 kB / 463.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.1138, allocations: 100.5 kB / 463.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.25e-05/0.1138, allocations: 66.95 kB / 463.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.1139, allocations: 29.7 kB / 463.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.114, allocations: 326.8 kB / 463.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.457e-05/0.1141, allocations: 59.91 kB / 464 MB, free: 496 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.648e-05/0.1141, allocations: 55.97 kB / 464 MB, free: 440 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.1143, allocations: 226.9 kB / 464.3 MB, free: 200 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1144, allocations: 4.031 kB / 464.3 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002606/0.1146, allocations: 223.1 kB / 464.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.1147, allocations: 53.67 kB / 464.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1147, allocations: 11.97 kB / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1147, allocations: 0 / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.1147, allocations: 0 / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1147, allocations: 0 / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.089e-05/0.1148, allocations: 4 kB / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.1148, allocations: 15.94 kB / 464.6 MB, free: 15.87 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.0001597/0.115, allocations: 187.5 kB / 464.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.1151, allocations: 23.75 kB / 464.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.463e-05/0.1151, allocations: 5.188 kB / 464.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1151, allocations: 0 / 464.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.1151, allocations: 8 kB / 464.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-06/0.1151, allocations: 0 / 464.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.1154, allocations: 217.4 kB / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1154, allocations: 0 / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.048e-06/0.1154, allocations: 3.938 kB / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1154, allocations: 4 kB / 465 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.1154, allocations: 4 kB / 465 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1154, allocations: 4 kB / 465 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1154, allocations: 0 / 465 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005337/0.116, allocations: 451.9 kB / 465.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.469e-05/0.116, allocations: 96.8 kB / 465.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.1161, allocations: 4 kB / 465.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.265e-05/0.1161, allocations: 4 kB / 465.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.1162, allocations: 4 kB / 465.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.1162, allocations: 7.938 kB / 465.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.526e-05/0.1163, allocations: 111.3 kB / 465.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1163, allocations: 0 / 465.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006188/0.1169, allocations: 139.9 kB / 465.8 MB, free: 14.52 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.001344/0.1183, allocations: 1.227 MB / 467 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005493/0.1188, allocations: 0.5658 MB / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1189, allocations: 3.938 kB / 467.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.1192, allocations: 475.2 kB / 468.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1195, allocations: 16 kB / 468.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.122, allocations: 2.475 MB / 470.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1223, allocations: 0.7351 MB / 471.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.486e-05/0.1223, allocations: 4.031 kB / 471.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.1224, allocations: 39.42 kB / 471.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of SimCode: time 1.763e-06/0.1224, allocations: 0 / 471.3 MB, free: 8.828 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].