Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002413/0.002418, allocations: 354.4 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.16/3.16, allocations: 388.9 MB / 406.2 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003418/0.003418, allocations: 229.9 kB / 451.6 MB, free: 0.6016 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6398/0.6398, allocations: 76.03 MB / 0.5594 GB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004654/0.0004656, allocations: 12 kB / 0.6216 GB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2642, allocations: 53.21 MB / 0.6736 GB, free: 62.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003134/0.2674, allocations: 3.061 MB / 0.6766 GB, free: 59.56 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.269, allocations: 1.216 MB / 0.6778 GB, free: 58.34 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.2691, allocations: 11.94 kB / 0.6778 GB, free: 58.33 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.2692, allocations: 31.77 kB / 0.6778 GB, free: 58.3 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004093/0.2697, allocations: 152.5 kB / 0.678 GB, free: 58.15 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.2699, allocations: 99.69 kB / 0.6781 GB, free: 58.05 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.2703, allocations: 315.5 kB / 0.6784 GB, free: 57.75 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004438/0.2707, allocations: 242.6 kB / 0.6786 GB, free: 57.49 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.2709, allocations: 96.55 kB / 0.6787 GB, free: 57.4 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.2711, allocations: 107.6 kB / 0.6788 GB, free: 57.29 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.2711, allocations: 11.12 kB / 0.6788 GB, free: 57.29 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002298/0.2713, allocations: 115.7 kB / 0.6789 GB, free: 57.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.2714, allocations: 51.8 kB / 0.679 GB, free: 57.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.2715, allocations: 65.58 kB / 0.679 GB, free: 57.05 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.2717, allocations: 199.5 kB / 0.6792 GB, free: 56.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.462e-06/0.2717, allocations: 0 / 0.6792 GB, free: 56.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.68e-06/0.2717, allocations: 0 / 0.6792 GB, free: 56.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.425e-06/0.2718, allocations: 0 / 0.6792 GB, free: 56.86 MB / 346.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.0004961/0.2723, allocations: 481.3 kB / 0.6797 GB, free: 56.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.2723, allocations: 8.031 kB / 0.6797 GB, free: 56.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008171/0.2731, allocations: 87.58 kB / 0.6798 GB, free: 56.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.2734, allocations: 253 kB / 0.68 GB, free: 55.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2734, allocations: 9.203 kB / 0.68 GB, free: 55.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/0.2735, allocations: 23.89 kB / 0.68 GB, free: 55.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.2739, allocations: 264 kB / 0.6803 GB, free: 55.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.274, allocations: 7.938 kB / 0.6803 GB, free: 55.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.274, allocations: 7.953 kB / 0.6803 GB, free: 55.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.052e-05/0.274, allocations: 12.33 kB / 0.6803 GB, free: 55.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.2744, allocations: 220.4 kB / 0.6805 GB, free: 55.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.2762, allocations: 1.206 MB / 0.6817 GB, free: 54.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.2765, allocations: 137.2 kB / 0.6818 GB, free: 53.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.828e-05/0.2766, allocations: 53.7 kB / 0.6819 GB, free: 53.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.2766, allocations: 0 / 0.6819 GB, free: 53.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.2766, allocations: 34.56 kB / 0.6819 GB, free: 53.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.051e-06/0.2766, allocations: 0 / 0.6819 GB, free: 53.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003507/0.277, allocations: 167.8 kB / 0.6821 GB, free: 53.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.386e-05/0.277, allocations: 77.11 kB / 0.6822 GB, free: 53.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.2772, allocations: 198.3 kB / 0.6823 GB, free: 53.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.2772, allocations: 41.77 kB / 0.6824 GB, free: 53.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.028e-05/0.2773, allocations: 147.9 kB / 0.6825 GB, free: 53.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.2774, allocations: 51.38 kB / 0.6826 GB, free: 53.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.763e-06/0.2774, allocations: 3.938 kB / 0.6826 GB, free: 53.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.626e-05/0.2775, allocations: 334.8 kB / 0.6829 GB, free: 52.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.06e-05/0.2776, allocations: 39.98 kB / 0.6829 GB, free: 52.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2777, allocations: 123.9 kB / 0.683 GB, free: 52.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.2778, allocations: 63.92 kB / 0.6831 GB, free: 52.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.875e-06/0.2779, allocations: 4 kB / 0.6831 GB, free: 52.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003411/0.2782, allocations: 201.1 kB / 0.6833 GB, free: 52.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.2782, allocations: 4.344 kB / 0.6833 GB, free: 52.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.617e-06/0.2783, allocations: 8 kB / 0.6833 GB, free: 52.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2783, allocations: 11.94 kB / 0.6833 GB, free: 52.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.2786, allocations: 55.91 kB / 0.6834 GB, free: 52.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007246/0.2793, allocations: 1.329 MB / 0.6847 GB, free: 50.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.2795, allocations: 15.84 kB / 0.6847 GB, free: 50.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.2795, allocations: 11.98 kB / 0.6847 GB, free: 50.78 MB / 346.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.2796, allocations: 141.7 kB / 0.6848 GB, free: 50.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.354e-05/0.2797, allocations: 19.8 kB / 0.6849 GB, free: 50.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002411/0.2799, allocations: 144.5 kB / 0.685 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.89e-06/0.28, allocations: 0 / 0.685 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-06/0.28, allocations: 4.094 kB / 0.685 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.605e-06/0.28, allocations: 3.938 kB / 0.685 GB, free: 50.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.2807, allocations: 496 kB / 0.6855 GB, free: 49.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-06/0.2807, allocations: 0 / 0.6855 GB, free: 49.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.2809, allocations: 27.98 kB / 0.6855 GB, free: 49.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.814e-06/0.2809, allocations: 4 kB / 0.6855 GB, free: 49.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.281, allocations: 7.984 kB / 0.6855 GB, free: 49.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006754/0.2817, allocations: 1.336 MB / 0.6868 GB, free: 48.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.185e-06/0.2817, allocations: 7.953 kB / 0.6868 GB, free: 48.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.282, allocations: 306 kB / 0.6871 GB, free: 48.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.2821, allocations: 92.89 kB / 0.6872 GB, free: 47.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.2821, allocations: 8 kB / 0.6872 GB, free: 47.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.2823, allocations: 0 / 0.6872 GB, free: 47.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.2823, allocations: 16 kB / 0.6872 GB, free: 47.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.2824, allocations: 8 kB / 0.6872 GB, free: 47.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001254/0.2825, allocations: 156.2 kB / 0.6874 GB, free: 47.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.15e-07/0.2825, allocations: 0 / 0.6874 GB, free: 47.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004109/0.2829, allocations: 47.91 kB / 0.6874 GB, free: 47.73 MB / 346.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.18e-05/0.283, allocations: 99.19 kB / 0.6875 GB, free: 47.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003349/0.2834, allocations: 132.2 kB / 0.6877 GB, free: 47.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.702e-06/0.2834, allocations: 0 / 0.6877 GB, free: 47.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.2836, allocations: 59.84 kB / 0.6877 GB, free: 47.44 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.284, allocations: 27.98 kB / 0.6877 GB, free: 47.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009009/0.2849, allocations: 0.6137 MB / 0.6883 GB, free: 46.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2851, allocations: 0.7521 MB / 0.6891 GB, free: 45.99 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.2853, allocations: 25.53 kB / 0.6891 GB, free: 45.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.2853, allocations: 15.44 kB / 0.6891 GB, free: 45.95 MB / 346.7 MB Notification: Performance of SimCode: time 1.419e-06/0.2853, allocations: 3.938 kB / 0.6891 GB, free: 45.95 MB / 346.7 MB Notification: Performance of Templates: time 0.00683/0.2922, allocations: 1.369 MB / 0.6905 GB, free: 44.59 MB / 346.7 MB