Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 183.8 kB / 16.71 MB, free: 4.969 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.446/1.446, allocations: 225.7 MB / 243.2 MB, free: 10.21 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.0008058/0.0008057, allocations: 97.62 kB / 294.4 MB, free: 9.75 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.3034/0.3034, allocations: 38.11 MB / 383.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 12 kB / 453.5 MB, free: 8.836 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.339, allocations: 59.12 MB / 0.5006 GB, free: 39.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003727/0.3428, allocations: 3.182 MB / 0.5037 GB, free: 38.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.3447, allocations: 1.98 MB / 0.5056 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.345, allocations: 12.03 kB / 0.5056 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.3451, allocations: 28.08 kB / 0.5057 GB, free: 37.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005125/0.3457, allocations: 153 kB / 0.5058 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.346, allocations: 120.8 kB / 0.5059 GB, free: 37.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.3465, allocations: 390.8 kB / 0.5063 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005591/0.347, allocations: 341.7 kB / 0.5066 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.3473, allocations: 102.3 kB / 0.5067 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.3475, allocations: 109 kB / 0.5068 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3475, allocations: 8.219 kB / 0.5068 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005001/0.348, allocations: 264.9 kB / 0.5071 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.923e-05/0.3481, allocations: 56.19 kB / 0.5071 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.3482, allocations: 111.5 kB / 0.5073 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.3487, allocations: 298.9 kB / 0.5075 GB, free: 36.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3487, allocations: 1.562 kB / 0.5075 GB, free: 36.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3487, allocations: 0 / 0.5075 GB, free: 36.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3487, allocations: 1.281 kB / 0.5075 GB, free: 36.95 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006071/0.3493, allocations: 473.6 kB / 0.508 GB, free: 36.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3494, allocations: 8.875 kB / 0.508 GB, free: 36.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006496/0.35, allocations: 78.59 kB / 0.5081 GB, free: 36.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.3503, allocations: 260.7 kB / 0.5083 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.3503, allocations: 11.48 kB / 0.5083 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/0.3504, allocations: 20.09 kB / 0.5084 GB, free: 36.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004139/0.3508, allocations: 267.2 kB / 0.5086 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3508, allocations: 7.797 kB / 0.5086 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.3509, allocations: 6.25 kB / 0.5086 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.3509, allocations: 15.47 kB / 0.5086 GB, free: 36.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003637/0.3513, allocations: 215.8 kB / 0.5088 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.3527, allocations: 1.218 MB / 0.51 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.353, allocations: 133.1 kB / 0.5102 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.329e-05/0.353, allocations: 45.11 kB / 0.5102 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.3531, allocations: 3.766 kB / 0.5102 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.3531, allocations: 36 kB / 0.5102 GB, free: 34.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.3531, allocations: 1.562 kB / 0.5102 GB, free: 34.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003433/0.3534, allocations: 162.7 kB / 0.5104 GB, free: 34.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.3535, allocations: 84.77 kB / 0.5105 GB, free: 34.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.3537, allocations: 210.1 kB / 0.5107 GB, free: 34.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.3537, allocations: 25.7 kB / 0.5107 GB, free: 34.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.3538, allocations: 154.9 kB / 0.5109 GB, free: 34.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.3539, allocations: 49.5 kB / 0.5109 GB, free: 34.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.3539, allocations: 5.156 kB / 0.5109 GB, free: 34.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.471e-05/0.3539, allocations: 328.6 kB / 0.5112 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.354, allocations: 40.09 kB / 0.5113 GB, free: 34.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.3541, allocations: 120.3 kB / 0.5114 GB, free: 33.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.3543, allocations: 185.8 kB / 0.5115 GB, free: 33.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3543, allocations: 1.344 kB / 0.5115 GB, free: 33.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002807/0.3546, allocations: 205.4 kB / 0.5117 GB, free: 33.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3546, allocations: 7.703 kB / 0.5118 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.944e-06/0.3547, allocations: 1.969 kB / 0.5118 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.3547, allocations: 8.562 kB / 0.5118 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.3549, allocations: 53.58 kB / 0.5118 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006571/0.3556, allocations: 1.319 MB / 0.5131 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3557, allocations: 26.91 kB / 0.5131 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.3557, allocations: 8.922 kB / 0.5131 GB, free: 32.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.3559, allocations: 140.5 kB / 0.5133 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.124e-05/0.3559, allocations: 20.7 kB / 0.5133 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002372/0.3561, allocations: 139.1 kB / 0.5134 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3562, allocations: 1.891 kB / 0.5134 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3562, allocations: 1.125 kB / 0.5134 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3562, allocations: 9.625 kB / 0.5134 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005437/0.3567, allocations: 0.4972 MB / 0.5139 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3567, allocations: 0 / 0.5139 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.3569, allocations: 29.09 kB / 0.5139 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.357, allocations: 4 kB / 0.5139 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.357, allocations: 10.48 kB / 0.514 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005154/0.3575, allocations: 1.325 MB / 0.5153 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3575, allocations: 2.719 kB / 0.5153 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.3578, allocations: 303.1 kB / 0.5155 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.3578, allocations: 94.52 kB / 0.5156 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.3578, allocations: 6.906 kB / 0.5156 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.3579, allocations: 10.17 kB / 0.5157 GB, free: 29.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.39e-05/0.358, allocations: 6.266 kB / 0.5157 GB, free: 29.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.358, allocations: 14.06 kB / 0.5157 GB, free: 29.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.21e-05/0.3581, allocations: 144.7 kB / 0.5158 GB, free: 29.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3581, allocations: 3.938 kB / 0.5158 GB, free: 29.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002931/0.3584, allocations: 46.44 kB / 0.5159 GB, free: 29.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.92e-05/0.3585, allocations: 97.94 kB / 0.516 GB, free: 29.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002727/0.3588, allocations: 130.8 kB / 0.5161 GB, free: 29.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3588, allocations: 0 / 0.5161 GB, free: 29.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3589, allocations: 60.39 kB / 0.5161 GB, free: 29.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.3593, allocations: 32.05 kB / 0.5162 GB, free: 29.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008343/0.3602, allocations: 0.6425 MB / 0.5168 GB, free: 29.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.3604, allocations: 0.741 MB / 0.5175 GB, free: 28.53 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.847e-05/0.3605, allocations: 35.41 kB / 0.5175 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.3605, allocations: 15.38 kB / 0.5176 GB, free: 28.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3605, allocations: 288 / 0.5176 GB, free: 28.52 MB / 378.7 MB Notification: Performance of Templates: time 0.00373/0.3643, allocations: 1.417 MB / 0.5189 GB, free: 28.39 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)