Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001421/0.001421, allocations: 184.7 kB / 16.38 MB, free: 5.594 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.731/1.731, allocations: 194.5 MB / 211.6 MB, free: 7.633 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.001764/0.001763, allocations: 116.7 kB / 256.9 MB, free: 10.26 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.2341/0.2341, allocations: 38.02 MB / 340.1 MB, free: 13.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004727/0.0004729, allocations: 14.84 kB / 403.8 MB, free: 55.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06704/0.06753, allocations: 53.22 MB / 457 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005093/0.07266, allocations: 5.131 MB / 462.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.07491, allocations: 1.774 MB / 463.9 MB, free: 3.453 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.07524, allocations: 31.81 kB / 464 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.07557, allocations: 119.2 kB / 464.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006372/0.07622, allocations: 323 kB / 464.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.07667, allocations: 163.7 kB / 464.5 MB, free: 2.828 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005198/0.0772, allocations: 411.2 kB / 464.9 MB, free: 2.426 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.07761, allocations: 325.2 kB / 465.3 MB, free: 2.105 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.07789, allocations: 211.2 kB / 465.5 MB, free: 1.898 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002523/0.07815, allocations: 211.1 kB / 465.7 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.07822, allocations: 28 kB / 465.7 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.364e-05/0.07831, allocations: 24 kB / 465.7 MB, free: 1.641 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.07843, allocations: 119.6 kB / 465.8 MB, free: 1.523 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.803e-05/0.07854, allocations: 121.5 kB / 466 MB, free: 1.398 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.07893, allocations: 454.8 kB / 466.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.333e-06/0.07894, allocations: 0 / 466.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.07895, allocations: 0 / 466.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.344e-06/0.07897, allocations: 0 / 466.4 MB, free: 0.9531 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001093/0.08007, allocations: 0.7073 MB / 467.1 MB, free: 204 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.08012, allocations: 16 kB / 467.1 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.652e-05/0.08022, allocations: 55.34 kB / 467.2 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008061/0.08104, allocations: 422.9 kB / 467.6 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.08117, allocations: 62.69 kB / 467.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.414e-05/0.08128, allocations: 44 kB / 467.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.08231, allocations: 0.5008 MB / 468.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.08235, allocations: 0 / 468.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/0.08242, allocations: 19.95 kB / 468.2 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.08244, allocations: 12 kB / 468.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008635/0.08332, allocations: 351.6 kB / 468.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.08643, allocations: 1.98 MB / 470.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/0.08702, allocations: 227.6 kB / 470.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.08706, allocations: 4 kB / 470.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.08712, allocations: 42.55 kB / 470.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.496e-06/0.08713, allocations: 0 / 470.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.002599/0.08974, allocations: 1.09 MB / 471.9 MB, free: 11.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.348e-05/0.08983, allocations: 106.8 kB / 472 MB, free: 10.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004347/0.09028, allocations: 329.6 kB / 472.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.09034, allocations: 29.7 kB / 472.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.09058, allocations: 271.7 kB / 472.6 MB, free: 10.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.0907, allocations: 86.81 kB / 472.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.966e-05/0.09074, allocations: 8 kB / 472.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.09093, allocations: 342.8 kB / 473.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.09122, allocations: 87.94 kB / 473.1 MB, free: 9.789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003737/0.09161, allocations: 209.1 kB / 473.4 MB, free: 9.523 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009965/0.09263, allocations: 315 kB / 473.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.464e-06/0.09265, allocations: 0 / 473.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001151/0.09381, allocations: 430.4 kB / 474.1 MB, free: 8.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.09385, allocations: 10.16 kB / 474.1 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.09387, allocations: 4 kB / 474.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003745/0.09426, allocations: 84.72 kB / 474.2 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003151/0.09459, allocations: 71.91 kB / 474.2 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.09915, allocations: 1.78 MB / 476 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.09981, allocations: 19.98 kB / 476 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.09991, allocations: 16 kB / 476.1 MB, free: 6.652 MB / 314.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (36): * Single equations (assignments): 35 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004181/0.1003, allocations: 197.4 kB / 476.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.1005, allocations: 39.53 kB / 476.3 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1007, allocations: 47.25 kB / 476.3 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.1007, allocations: 4 kB / 476.3 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.132e-06/0.1007, allocations: 7.891 kB / 476.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.551e-06/0.1007, allocations: 3.984 kB / 476.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.1025, allocations: 0.7873 MB / 477.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.33e-06/0.1025, allocations: 4 kB / 477.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.1028, allocations: 51.91 kB / 477.2 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.103, allocations: 24.84 kB / 477.2 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.103, allocations: 8 kB / 477.2 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.1042, allocations: 1.28 MB / 478.5 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.1042, allocations: 8.25 kB / 478.5 MB, free: 3.977 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.1053, allocations: 0.546 MB / 479.1 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.1055, allocations: 120.8 kB / 479.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.1056, allocations: 11.94 kB / 479.2 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.1059, allocations: 8 kB / 479.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.403e-05/0.1059, allocations: 19.97 kB / 479.2 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.106, allocations: 8 kB / 479.2 MB, free: 3.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002978/0.1063, allocations: 231.2 kB / 479.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.93e-07/0.1063, allocations: 0 / 479.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006434/0.1069, allocations: 88 kB / 479.5 MB, free: 2.902 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.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 (22): * Single equations (assignments): 20 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000131/0.1071, allocations: 103.2 kB / 479.6 MB, free: 2.789 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009905/0.1081, allocations: 383.5 kB / 480 MB, free: 2.402 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.98e-06/0.1081, allocations: 0 / 480 MB, free: 2.402 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005674/0.1087, allocations: 222.7 kB / 480.2 MB, free: 2.172 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006093/0.1093, allocations: 101.4 kB / 480.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.1113, allocations: 1.178 MB / 481.5 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.1119, allocations: 0.8623 MB / 482.4 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000276/0.1122, allocations: 47.25 kB / 482.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.1123, allocations: 31.42 kB / 482.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of SimCode: time 1.345e-06/0.1123, allocations: 0 / 482.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of Templates: time 0.01477/0.1271, allocations: 4.101 MB / 486.5 MB, free: 11.81 MB / 330.7 MB