Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001841/0.001842, allocations: 113.3 kB / 17.29 MB, free: 6.059 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.002038/0.002038, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.791/2.791, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4475/0.4475, allocations: 38.03 MB / 330.1 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00267/0.00267, allocations: 67.83 kB / 398.9 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3447, allocations: 58.06 MB / 457 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.009294/0.3541, allocations: 3.555 MB / 460.6 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003282/0.3574, allocations: 1.271 MB / 461.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004772/0.358, allocations: 15.94 kB / 461.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.3594, allocations: 155.3 kB / 462 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008967/0.3603, allocations: 159.3 kB / 462.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006038/0.361, allocations: 123.7 kB / 462.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006452/0.3616, allocations: 279 kB / 462.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005481/0.3622, allocations: 130.2 kB / 462.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003987/0.3626, allocations: 119.5 kB / 462.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.363, allocations: 115.5 kB / 462.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.363, allocations: 16 kB / 462.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006551/0.3637, allocations: 227.4 kB / 463.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.3639, allocations: 59.81 kB / 463.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.3641, allocations: 99.42 kB / 463.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006184/0.3647, allocations: 215.6 kB / 463.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3647, allocations: 0 / 463.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3647, allocations: 0 / 463.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.3648, allocations: 0 / 463.5 MB, free: 1.887 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001106/0.3659, allocations: 0.4989 MB / 464 MB, free: 1.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/0.3659, allocations: 11.89 kB / 464 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.3671, allocations: 80.59 kB / 464.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000531/0.3677, allocations: 256.7 kB / 464.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.3677, allocations: 16.64 kB / 464.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.862e-05/0.3678, allocations: 16.38 kB / 464.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006782/0.3685, allocations: 276 kB / 464.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.3685, allocations: 0 / 464.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.3686, allocations: 15.94 kB / 464.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.051e-05/0.3686, allocations: 8.328 kB / 464.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005292/0.3692, allocations: 224 kB / 464.9 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.3717, allocations: 1.21 MB / 466.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.3721, allocations: 140.9 kB / 466.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3722, allocations: 45.77 kB / 466.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.3722, allocations: 0 / 466.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.3723, allocations: 42.5 kB / 466.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.675e-06/0.3723, allocations: 4 kB / 466.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005299/0.3729, allocations: 161.3 kB / 466.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.3729, allocations: 77.11 kB / 466.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.3732, allocations: 210.9 kB / 466.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.3733, allocations: 25.7 kB / 466.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3734, allocations: 159.9 kB / 466.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.3735, allocations: 43.34 kB / 467 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.3736, allocations: 45.84 kB / 467 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3738, allocations: 334.7 kB / 467.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3739, allocations: 43.98 kB / 467.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.3746, allocations: 132.9 kB / 467.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.3749, allocations: 178.1 kB / 467.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.375, allocations: 4 kB / 467.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005085/0.3755, allocations: 201.3 kB / 467.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.3755, allocations: 8 kB / 467.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3755, allocations: 0 / 467.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.3756, allocations: 7.938 kB / 467.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.376, allocations: 55.91 kB / 468 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.3775, allocations: 1.416 MB / 469.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.3777, allocations: 15.84 kB / 469.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.3778, allocations: 20.05 kB / 469.4 MB, free: 11.45 MB / 350.1 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.0002108/0.378, allocations: 153.6 kB / 469.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.3781, allocations: 15.81 kB / 469.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003534/0.3785, allocations: 135 kB / 469.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3785, allocations: 0 / 469.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.3785, allocations: 7.984 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3785, allocations: 0 / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3796, allocations: 0.4921 MB / 470.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3796, allocations: 0 / 470.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.3798, allocations: 27.98 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.3799, allocations: 0 / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.3799, allocations: 11.98 kB / 470.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.3812, allocations: 1.416 MB / 471.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3812, allocations: 0 / 471.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004948/0.3817, allocations: 317.8 kB / 472 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.704e-05/0.3818, allocations: 92.95 kB / 472.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.3819, allocations: 4 kB / 472.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/0.3822, allocations: 4 kB / 472.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.3823, allocations: 12.05 kB / 472.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.3823, allocations: 8 kB / 472.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.3825, allocations: 147.2 kB / 472.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3825, allocations: 0 / 472.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006018/0.3832, allocations: 55.94 kB / 472.3 MB, free: 8.305 MB / 350.1 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 0.0001647/0.3833, allocations: 99.84 kB / 472.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005095/0.3839, allocations: 140 kB / 472.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3839, allocations: 0 / 472.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.3841, allocations: 59.91 kB / 472.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006157/0.3847, allocations: 45.41 kB / 472.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.3864, allocations: 0.6081 MB / 473.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.3869, allocations: 0.7437 MB / 474 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.3869, allocations: 23.38 kB / 474 MB, free: 6.523 MB / 350.1 MB Notification: Performance of SimCode: time 1.103e-06/0.387, allocations: 0 / 474 MB, free: 6.523 MB / 350.1 MB Notification: Performance of Templates: time 0.008973/0.3959, allocations: 2.992 MB / 477 MB, free: 3.531 MB / 350.1 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)