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 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: 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.0008554/0.0008558, allocations: 91.23 kB / 16.65 MB, free: 6.586 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.0008911/0.0008914, allocations: 185.2 kB / 17.57 MB, free: 6.203 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.478/1.478, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1818/0.1818, allocations: 38.05 MB / 310.1 MB, free: 5.918 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.0004896/0.0004898, allocations: 12 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2838, allocations: 56.34 MB / 433.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003639/0.2875, allocations: 3.204 MB / 436.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.2891, allocations: 1.311 MB / 438 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.2893, allocations: 19.81 kB / 438 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.2895, allocations: 23.84 kB / 438.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004045/0.2899, allocations: 159.3 kB / 438.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.2901, allocations: 119.7 kB / 438.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.2904, allocations: 386.9 kB / 438.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005101/0.291, allocations: 254.9 kB / 439 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.2911, allocations: 103.5 kB / 439.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.2913, allocations: 107.5 kB / 439.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.2913, allocations: 8 kB / 439.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003851/0.2917, allocations: 283.3 kB / 439.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.2918, allocations: 51.83 kB / 439.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.2919, allocations: 117.2 kB / 439.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.2923, allocations: 294.9 kB / 439.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2923, allocations: 0 / 439.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2923, allocations: 4 kB / 439.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.2923, allocations: 0 / 439.9 MB, free: 12.23 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005595/0.2929, allocations: 475 kB / 440.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2929, allocations: 8.031 kB / 440.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006364/0.2936, allocations: 80.58 kB / 440.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.2938, allocations: 247.9 kB / 440.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.2938, allocations: 16.69 kB / 440.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.2939, allocations: 24.28 kB / 440.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.2943, allocations: 268 kB / 441 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.2943, allocations: 4 kB / 441 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.2943, allocations: 4 kB / 441 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.2943, allocations: 16.31 kB / 441 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.2946, allocations: 228.3 kB / 441.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.2958, allocations: 1.202 MB / 442.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.296, allocations: 133.2 kB / 442.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.2961, allocations: 49.75 kB / 442.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.2961, allocations: 11.94 kB / 442.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.2961, allocations: 30.56 kB / 442.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.2961, allocations: 0 / 442.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002857/0.2964, allocations: 165.3 kB / 442.8 MB, free: 9.059 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.2965, allocations: 81.11 kB / 442.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.2966, allocations: 199 kB / 443.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.2966, allocations: 33.7 kB / 443.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/0.2967, allocations: 156 kB / 443.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.2967, allocations: 51.33 kB / 443.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.2968, allocations: 21.7 kB / 443.4 MB, free: 8.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.701e-05/0.2968, allocations: 326.8 kB / 443.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.109e-05/0.2969, allocations: 47.91 kB / 443.7 MB, free: 8.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.414e-05/0.297, allocations: 133.9 kB / 443.9 MB, free: 7.938 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.2972, allocations: 182.1 kB / 444 MB, free: 7.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2972, allocations: 0 / 444 MB, free: 7.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002226/0.2974, allocations: 205.1 kB / 444.2 MB, free: 7.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2974, allocations: 8 kB / 444.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2975, allocations: 4 kB / 444.2 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.2975, allocations: 7.938 kB / 444.2 MB, free: 7.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.2977, allocations: 47.91 kB / 444.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000658/0.2984, allocations: 1.329 MB / 445.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.205e-05/0.2985, allocations: 27.81 kB / 445.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.2985, allocations: 8 kB / 445.7 MB, free: 5.953 MB / 318.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 9.439e-05/0.2986, allocations: 149.9 kB / 445.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.2986, allocations: 19.75 kB / 445.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.2988, allocations: 146 kB / 446 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2988, allocations: 0 / 446 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.2988, allocations: 0 / 446 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2988, allocations: 0 / 446 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004765/0.2993, allocations: 500 kB / 446.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2993, allocations: 8 kB / 446.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.2995, allocations: 23.98 kB / 446.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2995, allocations: 4 kB / 446.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2995, allocations: 3.984 kB / 446.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005192/0.3001, allocations: 1.329 MB / 447.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3001, allocations: 3.938 kB / 447.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.3003, allocations: 301.9 kB / 448.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/0.3004, allocations: 100.9 kB / 448.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.3004, allocations: 0 / 448.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.3005, allocations: 7.938 kB / 448.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.3005, allocations: 11.98 kB / 448.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.3005, allocations: 4 kB / 448.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.577e-05/0.3006, allocations: 152.5 kB / 448.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3006, allocations: 3.938 kB / 448.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.301, allocations: 47.97 kB / 448.4 MB, free: 2.918 MB / 318.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.0001167/0.3011, allocations: 107.2 kB / 448.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002862/0.3014, allocations: 123.8 kB / 448.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3014, allocations: 0 / 448.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.3015, allocations: 60.72 kB / 448.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.3019, allocations: 31.98 kB / 448.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008604/0.3028, allocations: 0.6418 MB / 449.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.303, allocations: 0.7362 MB / 450.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.071e-05/0.3031, allocations: 33.52 kB / 450.2 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.3031, allocations: 19.44 kB / 450.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3031, allocations: 0 / 450.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of Templates: time 0.004419/0.3076, allocations: 1.402 MB / 451.6 MB, free: 15.71 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: