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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008398/0.0008398, allocations: 94.09 kB / 16.32 MB, free: 5.578 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.0009527/0.0009529, allocations: 180.6 kB / 17.21 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1915/0.1915, allocations: 38.04 MB / 309.7 MB, free: 6.023 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000539/0.000539, allocations: 15.98 kB / 376.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3572, allocations: 56.33 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.001993/0.3593, allocations: 1.821 MB / 434.8 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.3605, allocations: 1.042 MB / 435.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.975e-05/0.3606, allocations: 0 / 435.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.3607, allocations: 15.92 kB / 435.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.3608, allocations: 51.78 kB / 435.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.3614, allocations: 215.5 kB / 436.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.3616, allocations: 199.4 kB / 436.3 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.199e-05/0.3616, allocations: 4 kB / 436.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.874e-05/0.3617, allocations: 47.83 kB / 436.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.961e-05/0.3618, allocations: 75.72 kB / 436.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.3618, allocations: 4 kB / 436.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003871/0.3622, allocations: 315.4 kB / 436.7 MB, free: 15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.139e-05/0.3623, allocations: 35.88 kB / 436.7 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.3623, allocations: 41.64 kB / 436.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.3627, allocations: 389.4 kB / 437.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3627, allocations: 0 / 437.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3627, allocations: 0 / 437.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.371e-06/0.3627, allocations: 0 / 437.2 MB, free: 14.54 MB / 318.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.0004024/0.3631, allocations: 448.6 kB / 437.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3631, allocations: 8.031 kB / 437.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.162e-05/0.3632, allocations: 58.36 kB / 437.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.3633, allocations: 23.7 kB / 437.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.3635, allocations: 198.8 kB / 437.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.3635, allocations: 8 kB / 437.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.3635, allocations: 11.98 kB / 437.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.3637, allocations: 125.6 kB / 438 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3637, allocations: 0 / 438 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.3638, allocations: 7.938 kB / 438 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3638, allocations: 4 kB / 438 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.877e-05/0.3639, allocations: 91.88 kB / 438.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.3642, allocations: 352.4 kB / 438.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.3643, allocations: 126.5 kB / 438.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.977e-05/0.3644, allocations: 120.9 kB / 438.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.3645, allocations: 0 / 438.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.3645, allocations: 34.55 kB / 438.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 7.71e-07/0.3645, allocations: 4 kB / 438.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003766/0.3649, allocations: 296.2 kB / 439 MB, free: 12.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.3649, allocations: 93.09 kB / 439.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.626e-05/0.365, allocations: 136.8 kB / 439.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.365, allocations: 25.7 kB / 439.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.3651, allocations: 108.3 kB / 439.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.3651, allocations: 67.08 kB / 439.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.3651, allocations: 4 kB / 439.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.3652, allocations: 326.9 kB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.119e-05/0.3653, allocations: 55.97 kB / 439.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-05/0.3653, allocations: 59.92 kB / 439.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.032e-05/0.3654, allocations: 109.6 kB / 440 MB, free: 11.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3654, allocations: 0 / 440 MB, free: 11.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002235/0.3657, allocations: 219.1 kB / 440.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.3657, allocations: 57.66 kB / 440.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3657, allocations: 7.984 kB / 440.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3657, allocations: 3.953 kB / 440.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.3657, allocations: 0 / 440.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.3658, allocations: 4.062 kB / 440.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.533e-05/0.3658, allocations: 11.84 kB / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.3659, allocations: 8 kB / 440.3 MB, free: 11.13 MB / 318.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.000105/0.366, allocations: 179.5 kB / 440.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.366, allocations: 15.91 kB / 440.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.345e-05/0.366, allocations: 9.188 kB / 440.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.366, allocations: 0 / 440.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.366, allocations: 3.953 kB / 440.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.366, allocations: 4 kB / 440.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.3662, allocations: 217.4 kB / 440.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3662, allocations: 3.938 kB / 440.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.3662, allocations: 0 / 440.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3662, allocations: 0 / 440.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.3663, allocations: 16 kB / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3663, allocations: 0 / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3663, allocations: 3.953 kB / 440.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.3666, allocations: 452.9 kB / 441.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.658e-05/0.3667, allocations: 92.95 kB / 441.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.3667, allocations: 4 kB / 441.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.386e-05/0.3668, allocations: 4 kB / 441.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.3668, allocations: 4 kB / 441.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.3668, allocations: 8 kB / 441.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.055e-05/0.3669, allocations: 103.2 kB / 441.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3669, allocations: 0 / 441.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.3673, allocations: 135.9 kB / 441.5 MB, free: 9.797 MB / 318.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.001005/0.3684, allocations: 1.23 MB / 442.8 MB, free: 8.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000441/0.3688, allocations: 0.5694 MB / 443.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3688, allocations: 4 kB / 443.3 MB, free: 7.949 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002713/0.3691, allocations: 467.3 kB / 443.8 MB, free: 7.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.3695, allocations: 20.16 kB / 443.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.3712, allocations: 1.323 MB / 445.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.3716, allocations: 0.7278 MB / 445.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.271e-05/0.3717, allocations: 4 kB / 445.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.3717, allocations: 35.42 kB / 445.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3717, allocations: 0 / 445.9 MB, free: 5.301 MB / 318.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].