Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 225.7 MB / 243.2 MB, free: 8.441 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007792/0.0007796, allocations: 97.64 kB / 294.4 MB, free: 9.469 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2894/0.2894, allocations: 38.12 MB / 383.6 MB, free: 40.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002975, allocations: 12 kB / 453.5 MB, free: 8.758 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2834, allocations: 59.14 MB / 0.5006 GB, free: 38.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005317/0.2887, allocations: 4.576 MB / 0.5051 GB, free: 38.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.2913, allocations: 2.389 MB / 0.5074 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003076/0.2916, allocations: 30.12 kB / 0.5074 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.2918, allocations: 64.14 kB / 0.5075 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005763/0.2924, allocations: 208.9 kB / 0.5077 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005989/0.293, allocations: 224 kB / 0.5079 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008128/0.2938, allocations: 0.8227 MB / 0.5087 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009101/0.2948, allocations: 0.7627 MB / 0.5094 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000366/0.2951, allocations: 205.1 kB / 0.5096 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000487/0.2956, allocations: 294.8 kB / 0.5099 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.2957, allocations: 17.16 kB / 0.5099 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.296, allocations: 123.8 kB / 0.5101 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.2963, allocations: 208.5 kB / 0.5103 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.2965, allocations: 234.8 kB / 0.5105 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.2972, allocations: 0.5472 MB / 0.511 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2972, allocations: 0.75 kB / 0.511 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2972, allocations: 0 / 0.511 GB, free: 34.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2972, allocations: 2.031 kB / 0.511 GB, free: 34.66 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.0009787/0.2982, allocations: 0.6501 MB / 0.5117 GB, free: 34.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2982, allocations: 12.95 kB / 0.5117 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004613/0.2987, allocations: 86.41 kB / 0.5117 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.2992, allocations: 383.9 kB / 0.5121 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.2992, allocations: 34.59 kB / 0.5121 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2994, allocations: 45.06 kB / 0.5122 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.3, allocations: 0.6181 MB / 0.5128 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3001, allocations: 4.875 kB / 0.5128 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.3001, allocations: 21.7 kB / 0.5128 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.623e-05/0.3002, allocations: 35.27 kB / 0.5129 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005918/0.3008, allocations: 480.4 kB / 0.5133 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.3031, allocations: 2.896 MB / 0.5161 GB, free: 30.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.3035, allocations: 235.3 kB / 0.5164 GB, free: 30.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.3037, allocations: 150.2 kB / 0.5165 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.3037, allocations: 3.125 kB / 0.5165 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.3037, allocations: 36.69 kB / 0.5165 GB, free: 30.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3037, allocations: 0 / 0.5165 GB, free: 30.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001293/0.305, allocations: 0.9603 MB / 0.5175 GB, free: 30.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.3051, allocations: 79.86 kB / 0.5176 GB, free: 30.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.3053, allocations: 327.1 kB / 0.5179 GB, free: 29.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.3054, allocations: 31.14 kB / 0.5179 GB, free: 29.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.3055, allocations: 276.5 kB / 0.5182 GB, free: 29.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.3056, allocations: 101.7 kB / 0.5183 GB, free: 29.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.834e-05/0.3056, allocations: 6.125 kB / 0.5183 GB, free: 29.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.3056, allocations: 350.2 kB / 0.5186 GB, free: 29.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.3059, allocations: 141.8 kB / 0.5187 GB, free: 29.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000261/0.3061, allocations: 342 kB / 0.5191 GB, free: 28.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.3066, allocations: 0.5258 MB / 0.5196 GB, free: 28.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3066, allocations: 0 / 0.5196 GB, free: 28.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005997/0.3072, allocations: 0.5253 MB / 0.5201 GB, free: 28.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3073, allocations: 7.625 kB / 0.5201 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3073, allocations: 10.31 kB / 0.5201 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.3073, allocations: 10.53 kB / 0.5201 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003893/0.3077, allocations: 119.6 kB / 0.5202 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3077, allocations: 12.59 kB / 0.5202 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.3079, allocations: 25.94 kB / 0.5203 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.308, allocations: 24.38 kB / 0.5203 GB, free: 28.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * 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.0001909/0.3082, allocations: 231.2 kB / 0.5205 GB, free: 28.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.3082, allocations: 30.84 kB / 0.5205 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005158/0.3087, allocations: 353.5 kB / 0.5209 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3088, allocations: 2.719 kB / 0.5209 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3088, allocations: 0 / 0.5209 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3088, allocations: 4.562 kB / 0.5209 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.3099, allocations: 0.8824 MB / 0.5217 GB, free: 27.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3099, allocations: 4.594 kB / 0.5218 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.3103, allocations: 67.59 kB / 0.5218 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3103, allocations: 3.031 kB / 0.5218 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.3103, allocations: 11.16 kB / 0.5218 GB, free: 27.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3103, allocations: 4.594 kB / 0.5218 GB, free: 27.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3103, allocations: 6.859 kB / 0.5218 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.3109, allocations: 0.5909 MB / 0.5224 GB, free: 27.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.824e-05/0.311, allocations: 104.6 kB / 0.5225 GB, free: 26.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.311, allocations: 7.031 kB / 0.5225 GB, free: 26.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3112, allocations: 16.58 kB / 0.5225 GB, free: 26.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.3113, allocations: 22.75 kB / 0.5226 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3113, allocations: 8.656 kB / 0.5226 GB, free: 26.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000155/0.3114, allocations: 218.2 kB / 0.5228 GB, free: 26.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3114, allocations: 0 / 0.5228 GB, free: 26.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004011/0.3118, allocations: 92.59 kB / 0.5229 GB, free: 26.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.475e-05/0.3119, allocations: 114.7 kB / 0.523 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004431/0.3124, allocations: 367.5 kB / 0.5233 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3124, allocations: 1.812 kB / 0.5233 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.3126, allocations: 143 kB / 0.5235 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.3131, allocations: 72.62 kB / 0.5235 GB, free: 26.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.3144, allocations: 1.234 MB / 0.5247 GB, free: 25.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3147, allocations: 0.8579 MB / 0.5256 GB, free: 25.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003276/0.315, allocations: 132.9 kB / 0.5257 GB, free: 25.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.51e-05/0.3151, allocations: 35.53 kB / 0.5257 GB, free: 25 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3151, allocations: 3.938 kB / 0.5257 GB, free: 25 MB / 378.7 MB Notification: Performance of Templates: time 0.005772/0.3209, allocations: 3.141 MB / 0.5288 GB, free: 24.75 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)