Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003341/0.003348, allocations: 364.7 kB / 17.21 MB, free: 4.953 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.721/3.721, allocations: 388.9 MB / 406.8 MB, free: 11.91 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.003596/0.003596, allocations: 237.6 kB / 452.2 MB, free: 14.51 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.738/0.738, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004474, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.09009, allocations: 53.22 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5373, allocations: 92.9 MB / 0.7649 GB, free: 81.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.5377, allocations: 90.19 kB / 0.765 GB, free: 81.57 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0839/0.6216, allocations: 24.01 MB / 0.7885 GB, free: 76.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6216, allocations: 0 / 0.7885 GB, free: 76.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.152e-05/0.6217, allocations: 14.89 kB / 0.7885 GB, free: 76.03 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001517/0.6232, allocations: 0.7024 MB / 0.7892 GB, free: 75.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.6233, allocations: 15.45 kB / 0.7892 GB, free: 75.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002716/0.626, allocations: 211.5 kB / 0.7894 GB, free: 75.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008653/0.6269, allocations: 374.2 kB / 0.7897 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.627, allocations: 26.89 kB / 0.7898 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.6271, allocations: 54.36 kB / 0.7898 GB, free: 75.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.6285, allocations: 0.6106 MB / 0.7904 GB, free: 74.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.327e-05/0.6285, allocations: 3.688 kB / 0.7904 GB, free: 74.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.029e-05/0.6286, allocations: 26.05 kB / 0.7904 GB, free: 74.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002076/0.6288, allocations: 51.67 kB / 0.7905 GB, free: 74.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.6302, allocations: 0.5831 MB / 0.7911 GB, free: 74.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.6348, allocations: 2.267 MB / 0.7933 GB, free: 73.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/0.6358, allocations: 478.8 kB / 0.7937 GB, free: 73.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.6362, allocations: 242 kB / 0.794 GB, free: 73.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.6363, allocations: 11.67 kB / 0.794 GB, free: 73.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.6364, allocations: 33.69 kB / 0.794 GB, free: 73.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=42): time 3.306e-06/0.6364, allocations: 0 / 0.794 GB, free: 73.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=43): time 0.00545/0.6418, allocations: 1.665 MB / 0.7956 GB, free: 72.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.642, allocations: 81.67 kB / 0.7957 GB, free: 72.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.6425, allocations: 282.9 kB / 0.796 GB, free: 72.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.6426, allocations: 37.77 kB / 0.796 GB, free: 72.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.6428, allocations: 223.1 kB / 0.7962 GB, free: 71.99 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.6429, allocations: 149.2 kB / 0.7964 GB, free: 71.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.643, allocations: 10.88 kB / 0.7964 GB, free: 71.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.6431, allocations: 350.1 kB / 0.7967 GB, free: 71.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.6435, allocations: 172.5 kB / 0.7969 GB, free: 71.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004859/0.644, allocations: 288.1 kB / 0.7972 GB, free: 71.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005722/0.6446, allocations: 215.5 kB / 0.7974 GB, free: 71.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.6447, allocations: 3.875 kB / 0.7974 GB, free: 71.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001848/0.6465, allocations: 0.6503 MB / 0.798 GB, free: 71.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.6466, allocations: 7.688 kB / 0.798 GB, free: 71.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.6466, allocations: 3.906 kB / 0.798 GB, free: 71.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008925/0.6475, allocations: 168.9 kB / 0.7982 GB, free: 71.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007337/0.6483, allocations: 94.12 kB / 0.7983 GB, free: 71.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/0.6528, allocations: 2.522 MB / 0.8007 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005341/0.6534, allocations: 25.84 kB / 0.8008 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.6534, allocations: 17.62 kB / 0.8008 GB, free: 69.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003466/0.6538, allocations: 198.2 kB / 0.801 GB, free: 69.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.133e-05/0.6539, allocations: 37.34 kB / 0.801 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.6556, allocations: 0.608 MB / 0.8016 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.6557, allocations: 2.906 kB / 0.8016 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.6557, allocations: 4.188 kB / 0.8016 GB, free: 69.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.6557, allocations: 0 / 0.8016 GB, free: 69.12 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.659, allocations: 1.349 MB / 0.8029 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.659, allocations: 6.812 kB / 0.8029 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006903/0.6597, allocations: 79 kB / 0.803 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007159/0.6605, allocations: 131.7 kB / 0.8031 GB, free: 68.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.717e-05/0.6605, allocations: 21.64 kB / 0.8031 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00367/0.6642, allocations: 2.3 MB / 0.8054 GB, free: 66.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6643, allocations: 4 kB / 0.8054 GB, free: 66.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.6665, allocations: 0.9351 MB / 0.8063 GB, free: 66.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.6666, allocations: 115.2 kB / 0.8064 GB, free: 66.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.6667, allocations: 8.656 kB / 0.8064 GB, free: 66.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003676/0.6671, allocations: 16.61 kB / 0.8064 GB, free: 66.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.6672, allocations: 31.27 kB / 0.8065 GB, free: 66.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.6673, allocations: 14.83 kB / 0.8065 GB, free: 66.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002751/0.6676, allocations: 197.7 kB / 0.8067 GB, free: 66.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6676, allocations: 3.938 kB / 0.8067 GB, free: 66.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008594/0.6685, allocations: 149 kB / 0.8068 GB, free: 66.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.6686, allocations: 115.5 kB / 0.8069 GB, free: 66.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.6704, allocations: 0.6623 MB / 0.8076 GB, free: 65.94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6705, allocations: 0 / 0.8076 GB, free: 65.94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.6715, allocations: 425.7 kB / 0.808 GB, free: 65.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.6722, allocations: 68.38 kB / 0.808 GB, free: 65.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.6748, allocations: 1.363 MB / 0.8094 GB, free: 64.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.6753, allocations: 0.8804 MB / 0.8102 GB, free: 64.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003737/0.6757, allocations: 74.88 kB / 0.8103 GB, free: 64.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.6758, allocations: 31.64 kB / 0.8103 GB, free: 64.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6758, allocations: 0 / 0.8103 GB, free: 64.04 MB / 442.7 MB Notification: Performance of Templates: time 0.01401/0.6899, allocations: 5.123 MB / 0.8153 GB, free: 61.61 MB / 442.7 MB