Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002628/0.002633, allocations: 361.6 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.631/3.631, allocations: 388.9 MB / 406.8 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.003554/0.003554, allocations: 231.7 kB / 452.2 MB, free: 14.6 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.7316/0.7316, allocations: 76.01 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09049, allocations: 53.23 MB / 0.6742 GB, free: 60.84 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.53, allocations: 96.47 MB / 0.7684 GB, free: 81.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002304/0.5324, allocations: 0.8627 MB / 0.7693 GB, free: 81.44 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05516/0.5876, allocations: 14.51 MB / 0.7834 GB, free: 79.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.5877, allocations: 3.984 kB / 0.7834 GB, free: 79.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.906e-05/0.5877, allocations: 7.688 kB / 0.7834 GB, free: 79.04 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.001922/0.5897, allocations: 0.8061 MB / 0.7842 GB, free: 78.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.5897, allocations: 11.69 kB / 0.7842 GB, free: 78.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.5899, allocations: 54.25 kB / 0.7843 GB, free: 78.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.5912, allocations: 0.5288 MB / 0.7848 GB, free: 78.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.5913, allocations: 29.78 kB / 0.7848 GB, free: 78.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.112e-05/0.5914, allocations: 42.17 kB / 0.7849 GB, free: 78.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008991/0.5923, allocations: 462.7 kB / 0.7853 GB, free: 77.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.5923, allocations: 7.938 kB / 0.7853 GB, free: 77.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-05/0.5924, allocations: 22.23 kB / 0.7854 GB, free: 77.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.5924, allocations: 11.56 kB / 0.7854 GB, free: 77.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.5931, allocations: 263.5 kB / 0.7856 GB, free: 77.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.5958, allocations: 1.87 MB / 0.7874 GB, free: 76.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006666/0.5965, allocations: 247.8 kB / 0.7877 GB, free: 76.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.5967, allocations: 87.42 kB / 0.7878 GB, free: 76.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.5968, allocations: 7.984 kB / 0.7878 GB, free: 76.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.5971, allocations: 169.4 kB / 0.7879 GB, free: 76.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 2.625e-06/0.5971, allocations: 4 kB / 0.7879 GB, free: 76.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=27): time 0.00263/0.5998, allocations: 1.138 MB / 0.789 GB, free: 75.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.5998, allocations: 132.4 kB / 0.7892 GB, free: 75.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.6004, allocations: 393 kB / 0.7895 GB, free: 75.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.6005, allocations: 32.89 kB / 0.7896 GB, free: 75.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.6006, allocations: 256.6 kB / 0.7898 GB, free: 74.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.6007, allocations: 94.83 kB / 0.7899 GB, free: 74.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.6008, allocations: 11.41 kB / 0.7899 GB, free: 74.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.948e-05/0.6009, allocations: 350.7 kB / 0.7903 GB, free: 74.53 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.6011, allocations: 89.58 kB / 0.7903 GB, free: 74.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.6014, allocations: 218.8 kB / 0.7906 GB, free: 74.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.6017, allocations: 143.5 kB / 0.7907 GB, free: 74.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6018, allocations: 4 kB / 0.7907 GB, free: 74.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001262/0.603, allocations: 474 kB / 0.7911 GB, free: 74.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.6031, allocations: 33.39 kB / 0.7912 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.6031, allocations: 4.391 kB / 0.7912 GB, free: 74.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006274/0.6037, allocations: 95.08 kB / 0.7913 GB, free: 74.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.6042, allocations: 74.58 kB / 0.7913 GB, free: 74.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.6069, allocations: 1.812 MB / 0.7931 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.6074, allocations: 26.59 kB / 0.7931 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.6074, allocations: 19.36 kB / 0.7932 GB, free: 72.56 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003365/0.6078, allocations: 190.7 kB / 0.7933 GB, free: 72.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.6079, allocations: 42.28 kB / 0.7934 GB, free: 72.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000831/0.6087, allocations: 301.6 kB / 0.7937 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.6087, allocations: 6.828 kB / 0.7937 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.6087, allocations: 0 / 0.7937 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.6088, allocations: 4 kB / 0.7937 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.6102, allocations: 0.7785 MB / 0.7944 GB, free: 71.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.6102, allocations: 0 / 0.7944 GB, free: 71.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.6107, allocations: 47.61 kB / 0.7945 GB, free: 71.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003266/0.611, allocations: 51.86 kB / 0.7945 GB, free: 71.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.6111, allocations: 10.91 kB / 0.7945 GB, free: 71.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.6124, allocations: 1.439 MB / 0.7959 GB, free: 70.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6125, allocations: 6.812 kB / 0.796 GB, free: 70.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.6135, allocations: 0.4908 MB / 0.7964 GB, free: 70.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.6137, allocations: 137.3 kB / 0.7966 GB, free: 70.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.016e-05/0.6138, allocations: 10.45 kB / 0.7966 GB, free: 70.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/0.6142, allocations: 19.02 kB / 0.7966 GB, free: 70.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6143, allocations: 22.09 kB / 0.7966 GB, free: 70.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.6144, allocations: 11.39 kB / 0.7966 GB, free: 70.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004135/0.6148, allocations: 265.7 kB / 0.7969 GB, free: 70.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6148, allocations: 0 / 0.7969 GB, free: 70.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007485/0.6156, allocations: 124.1 kB / 0.797 GB, free: 70.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.6166, allocations: 366.8 kB / 0.7973 GB, free: 69.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.618, allocations: 464 kB / 0.7978 GB, free: 69.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.618, allocations: 4.125 kB / 0.7978 GB, free: 69.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.6186, allocations: 245.6 kB / 0.798 GB, free: 69.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.6197, allocations: 112.2 kB / 0.7981 GB, free: 69.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.6222, allocations: 1.358 MB / 0.7995 GB, free: 68.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.6226, allocations: 0.8674 MB / 0.8003 GB, free: 67.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.623, allocations: 61.09 kB / 0.8004 GB, free: 67.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.6232, allocations: 34.78 kB / 0.8004 GB, free: 67.75 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6232, allocations: 0 / 0.8004 GB, free: 67.75 MB / 442.7 MB Notification: Performance of Templates: time 0.01691/0.6401, allocations: 5.868 MB / 0.8061 GB, free: 64.93 MB / 442.7 MB