Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002408/0.002411, allocations: 353.2 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.586/3.586, allocations: 388.9 MB / 406.2 MB, free: 12 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003505/0.003505, allocations: 227.8 kB / 451.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6642/0.6642, allocations: 76 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004704/0.0004707, allocations: 16 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06893/0.06942, allocations: 53.23 MB / 0.6736 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005708/0.07518, allocations: 6.108 MB / 0.6796 GB, free: 54.68 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.07748, allocations: 1.533 MB / 0.6811 GB, free: 53.14 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003642/0.07786, allocations: 43.69 kB / 0.6811 GB, free: 53.09 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.07809, allocations: 99.2 kB / 0.6812 GB, free: 53 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008303/0.07894, allocations: 381.7 kB / 0.6816 GB, free: 52.62 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.07939, allocations: 195.7 kB / 0.6818 GB, free: 52.43 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006531/0.08006, allocations: 0.7824 MB / 0.6825 GB, free: 51.64 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.0803, allocations: 130.5 kB / 0.6826 GB, free: 51.51 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.08062, allocations: 242.8 kB / 0.6829 GB, free: 51.27 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.08109, allocations: 322.9 kB / 0.6832 GB, free: 50.95 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.08116, allocations: 23.94 kB / 0.6832 GB, free: 50.93 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.916e-05/0.08125, allocations: 20 kB / 0.6832 GB, free: 50.91 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.0814, allocations: 139.6 kB / 0.6834 GB, free: 50.77 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.08151, allocations: 109.5 kB / 0.6835 GB, free: 50.66 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.08184, allocations: 359 kB / 0.6838 GB, free: 50.31 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.476e-06/0.08186, allocations: 0 / 0.6838 GB, free: 50.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.08188, allocations: 4 kB / 0.6838 GB, free: 50.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.08189, allocations: 0 / 0.6838 GB, free: 50.3 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001115/0.08302, allocations: 0.715 MB / 0.6845 GB, free: 49.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.08306, allocations: 8.828 kB / 0.6845 GB, free: 49.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.557e-05/0.08317, allocations: 55.34 kB / 0.6846 GB, free: 49.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.0838, allocations: 423.3 kB / 0.685 GB, free: 49.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.08385, allocations: 29 kB / 0.685 GB, free: 49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.536e-05/0.08393, allocations: 39.95 kB / 0.685 GB, free: 48.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006696/0.08461, allocations: 451.6 kB / 0.6855 GB, free: 48.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.08464, allocations: 7.891 kB / 0.6855 GB, free: 48.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.073e-05/0.08469, allocations: 16 kB / 0.6855 GB, free: 48.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.08472, allocations: 12 kB / 0.6855 GB, free: 48.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005552/0.08528, allocations: 304.7 kB / 0.6858 GB, free: 48.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.08728, allocations: 1.763 MB / 0.6875 GB, free: 46.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.08753, allocations: 143.6 kB / 0.6877 GB, free: 46.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.982e-05/0.08765, allocations: 58.66 kB / 0.6877 GB, free: 46.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.08768, allocations: 7.938 kB / 0.6877 GB, free: 46.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.08771, allocations: 34.56 kB / 0.6877 GB, free: 45.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 2.684e-06/0.08772, allocations: 0 / 0.6877 GB, free: 45.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009517/0.08868, allocations: 0.5998 MB / 0.6883 GB, free: 45.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.08873, allocations: 110.8 kB / 0.6884 GB, free: 45.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.08914, allocations: 377.6 kB / 0.6888 GB, free: 44.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.08917, allocations: 25.7 kB / 0.6888 GB, free: 44.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.08932, allocations: 283.3 kB / 0.6891 GB, free: 44.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.08937, allocations: 51.27 kB / 0.6891 GB, free: 44.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.0894, allocations: 8 kB / 0.6892 GB, free: 44.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.08948, allocations: 346.8 kB / 0.6895 GB, free: 44.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.0896, allocations: 55.66 kB / 0.6895 GB, free: 44.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.08977, allocations: 191.4 kB / 0.6897 GB, free: 43.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.08994, allocations: 80.27 kB / 0.6898 GB, free: 43.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.141e-06/0.08996, allocations: 4 kB / 0.6898 GB, free: 43.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004902/0.09045, allocations: 292.7 kB / 0.6901 GB, free: 43.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.09049, allocations: 8 kB / 0.6901 GB, free: 43.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.053e-06/0.0905, allocations: 4 kB / 0.6901 GB, free: 43.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.09053, allocations: 8 kB / 0.6901 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.09083, allocations: 67.91 kB / 0.6902 GB, free: 43.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.09086, allocations: 8.5 kB / 0.6902 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/0.09109, allocations: 27.84 kB / 0.6902 GB, free: 43.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.09113, allocations: 20.38 kB / 0.6902 GB, free: 43.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.09131, allocations: 185.5 kB / 0.6904 GB, free: 43.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.093e-05/0.09141, allocations: 35.53 kB / 0.6904 GB, free: 43.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.09173, allocations: 168.7 kB / 0.6906 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-06/0.09175, allocations: 0 / 0.6906 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.757e-06/0.09176, allocations: 4 kB / 0.6906 GB, free: 42.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.09178, allocations: 4 kB / 0.6906 GB, free: 42.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006838/0.09247, allocations: 0.5265 MB / 0.6911 GB, free: 42.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.09249, allocations: 4 kB / 0.6911 GB, free: 42.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.09276, allocations: 31.98 kB / 0.6911 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.09278, allocations: 0 / 0.6911 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.0928, allocations: 8 kB / 0.6911 GB, free: 42.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.393e-06/0.09282, allocations: 3.984 kB / 0.6912 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.252e-06/0.09283, allocations: 4 kB / 0.6912 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004266/0.09327, allocations: 403.2 kB / 0.6915 GB, free: 41.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.606e-05/0.09336, allocations: 116.7 kB / 0.6917 GB, free: 41.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.747e-05/0.09343, allocations: 4 kB / 0.6917 GB, free: 41.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.09368, allocations: 7.984 kB / 0.6917 GB, free: 41.67 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.09373, allocations: 15.94 kB / 0.6917 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.09375, allocations: 8 kB / 0.6917 GB, free: 41.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002524/0.09401, allocations: 255.2 kB / 0.6919 GB, free: 41.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.27e-07/0.09403, allocations: 0 / 0.6919 GB, free: 41.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005267/0.09456, allocations: 68 kB / 0.692 GB, free: 41.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.594e-05/0.09466, allocations: 103.2 kB / 0.6921 GB, free: 41.23 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.09498, allocations: 160.4 kB / 0.6922 GB, free: 41.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.371e-06/0.09499, allocations: 3.938 kB / 0.6923 GB, free: 41.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.09511, allocations: 51.92 kB / 0.6923 GB, free: 41.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007777/0.0959, allocations: 86.12 kB / 0.6924 GB, free: 40.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.0974, allocations: 1.065 MB / 0.6934 GB, free: 39.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.09772, allocations: 0.8506 MB / 0.6943 GB, free: 38.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.09796, allocations: 55.25 kB / 0.6943 GB, free: 38.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.91e-05/0.09804, allocations: 27.44 kB / 0.6943 GB, free: 38.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.394e-06/0.09806, allocations: 0 / 0.6943 GB, free: 38.87 MB / 442.7 MB Notification: Performance of Templates: time 0.008435/0.1065, allocations: 2.978 MB / 0.6972 GB, free: 35.92 MB / 442.7 MB