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.001369/0.001368, allocations: 184.8 kB / 16.38 MB, free: 5.621 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 1.746/1.746, allocations: 194.5 MB / 211.6 MB, free: 7.516 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001695/0.001695, allocations: 124.5 kB / 256.9 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2177/0.2177, allocations: 38.02 MB / 340.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.0004111, allocations: 15.88 kB / 403.8 MB, free: 55.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06905/0.06948, allocations: 53.22 MB / 457 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.004783/0.0743, allocations: 4.897 MB / 461.9 MB, free: 5.438 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.07677, allocations: 1.938 MB / 463.8 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.07705, allocations: 31.75 kB / 463.9 MB, free: 3.461 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.0774, allocations: 143.1 kB / 464 MB, free: 3.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007201/0.07814, allocations: 326.9 kB / 464.3 MB, free: 3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.07853, allocations: 159.7 kB / 464.5 MB, free: 2.844 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.07908, allocations: 427 kB / 464.9 MB, free: 2.426 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003836/0.07948, allocations: 301.5 kB / 465.2 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.07984, allocations: 239.1 kB / 465.4 MB, free: 1.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.08012, allocations: 211.1 kB / 465.6 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.08019, allocations: 24 kB / 465.7 MB, free: 1.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.08034, allocations: 51.98 kB / 465.7 MB, free: 1.609 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.08045, allocations: 115.6 kB / 465.8 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.37e-05/0.08056, allocations: 113.5 kB / 465.9 MB, free: 1.379 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004274/0.081, allocations: 0.4909 MB / 466.4 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.814e-06/0.08101, allocations: 0 / 466.4 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.637e-06/0.08102, allocations: 3.938 kB / 466.4 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.944e-06/0.08104, allocations: 4 kB / 466.4 MB, free: 0.8789 MB / 298.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.00115/0.0822, allocations: 0.7668 MB / 467.2 MB, free: 56 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.08224, allocations: 12.02 kB / 467.2 MB, free: 44 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.08239, allocations: 55.52 kB / 467.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007904/0.08319, allocations: 453.8 kB / 467.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/0.08325, allocations: 25 kB / 467.7 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/0.08334, allocations: 40 kB / 467.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.08423, allocations: 453.1 kB / 468.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.08426, allocations: 4 kB / 468.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.08432, allocations: 19.78 kB / 468.2 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.08434, allocations: 8 kB / 468.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005815/0.08493, allocations: 278.3 kB / 468.5 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.08757, allocations: 1.87 MB / 470.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.08823, allocations: 246.7 kB / 470.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.08828, allocations: 12.45 kB / 470.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.08863, allocations: 176.1 kB / 470.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.494e-06/0.08865, allocations: 0 / 470.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.002385/0.09104, allocations: 1.146 MB / 472 MB, free: 10.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.09114, allocations: 136.5 kB / 472.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006069/0.09176, allocations: 389.6 kB / 472.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.09181, allocations: 29.7 kB / 472.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.09204, allocations: 259.6 kB / 472.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.911e-05/0.09215, allocations: 98.64 kB / 472.9 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.09219, allocations: 8.062 kB / 472.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.09238, allocations: 362.6 kB / 473.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.09261, allocations: 92.64 kB / 473.3 MB, free: 9.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.09293, allocations: 213.7 kB / 473.5 MB, free: 9.305 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.09324, allocations: 153.6 kB / 473.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.09325, allocations: 0 / 473.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001069/0.09433, allocations: 463.1 kB / 474.1 MB, free: 8.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.09439, allocations: 37.98 kB / 474.2 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.09441, allocations: 4 kB / 474.2 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004557/0.09487, allocations: 96.77 kB / 474.3 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.09516, allocations: 67.91 kB / 474.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002753/0.09793, allocations: 1.839 MB / 476.2 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.09823, allocations: 20 kB / 476.2 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.09829, allocations: 23.94 kB / 476.2 MB, free: 6.457 MB / 314.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.000269/0.09857, allocations: 201.5 kB / 476.4 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.09865, allocations: 43.52 kB / 476.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007102/0.09937, allocations: 297.9 kB / 476.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.09942, allocations: 7.953 kB / 476.7 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-06/0.09944, allocations: 0 / 476.7 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.09946, allocations: 0 / 476.7 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.1009, allocations: 0.7815 MB / 477.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-06/0.1009, allocations: 4 kB / 477.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.1012, allocations: 47.97 kB / 477.6 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.1015, allocations: 48.81 kB / 477.6 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.1015, allocations: 11.92 kB / 477.6 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.1032, allocations: 1.437 MB / 479.1 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1032, allocations: 3.938 kB / 479.1 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.1042, allocations: 0.5132 MB / 479.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.1044, allocations: 144.8 kB / 479.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/0.1045, allocations: 8 kB / 479.7 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.1048, allocations: 19.98 kB / 479.8 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.1048, allocations: 23.97 kB / 479.8 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.1049, allocations: 7.984 kB / 479.8 MB, free: 2.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003722/0.1053, allocations: 267.2 kB / 480 MB, free: 2.344 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.28e-07/0.1053, allocations: 3.938 kB / 480.1 MB, free: 2.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005788/0.1059, allocations: 108 kB / 480.2 MB, free: 2.234 MB / 314.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.0009584/0.1068, allocations: 334.8 kB / 480.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.1079, allocations: 463 kB / 480.9 MB, free: 1.461 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.264e-06/0.1079, allocations: 0 / 480.9 MB, free: 1.461 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.1084, allocations: 250.4 kB / 481.2 MB, free: 1.203 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.109, allocations: 117.6 kB / 481.3 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1112, allocations: 1.354 MB / 482.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006328/0.1119, allocations: 0.8662 MB / 483.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000329/0.1122, allocations: 59.31 kB / 483.6 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.1123, allocations: 35.44 kB / 483.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.121e-06/0.1123, allocations: 0 / 483.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of Templates: time 0.01407/0.1264, allocations: 5.541 MB / 489.2 MB, free: 9.172 MB / 330.7 MB