Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009851/0.0009851, allocations: 88.78 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 177.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1754/0.1754, allocations: 38.04 MB / 310.1 MB, free: 5.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005799/0.00058, allocations: 12 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2578, allocations: 56.32 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00545/0.2633, allocations: 5.691 MB / 439.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.2666, allocations: 1.863 MB / 441 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007759/0.2674, allocations: 35.75 kB / 441.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005241/0.268, allocations: 95.36 kB / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009733/0.269, allocations: 286.5 kB / 441.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.2694, allocations: 143.8 kB / 441.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.2705, allocations: 0.8722 MB / 442.5 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005192/0.271, allocations: 357.8 kB / 442.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.2715, allocations: 230.9 kB / 443 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005107/0.272, allocations: 270.9 kB / 443.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.229e-05/0.2721, allocations: 24 kB / 443.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.2723, allocations: 24 kB / 443.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2724, allocations: 135.5 kB / 443.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.2727, allocations: 256.5 kB / 443.7 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006288/0.2734, allocations: 0.5603 MB / 444.3 MB, free: 7.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2734, allocations: 4 kB / 444.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2734, allocations: 3.984 kB / 444.3 MB, free: 7.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.026e-05/0.2734, allocations: 0 / 444.3 MB, free: 7.828 MB / 318.1 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.001489/0.2749, allocations: 0.6919 MB / 445 MB, free: 7.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.275, allocations: 15.98 kB / 445 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.2751, allocations: 52.28 kB / 445.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00068/0.2758, allocations: 439.6 kB / 445.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.2759, allocations: 66.7 kB / 445.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.276, allocations: 43.98 kB / 445.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008545/0.2769, allocations: 0.497 MB / 446.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.2769, allocations: 4 kB / 446.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.277, allocations: 20 kB / 446.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.277, allocations: 12 kB / 446.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006784/0.2777, allocations: 355.6 kB / 446.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.2801, allocations: 1.992 MB / 448.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004173/0.2806, allocations: 227.6 kB / 448.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.2808, allocations: 110.5 kB / 448.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.2808, allocations: 4 kB / 448.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.2809, allocations: 38.56 kB / 448.8 MB, free: 3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.334e-06/0.2809, allocations: 0 / 448.8 MB, free: 3 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001573/0.2824, allocations: 0.8543 MB / 449.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.2825, allocations: 110.8 kB / 449.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.2828, allocations: 333.5 kB / 450.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.2828, allocations: 29.7 kB / 450.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.283, allocations: 271.6 kB / 450.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.2831, allocations: 78.83 kB / 450.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/0.2831, allocations: 37.7 kB / 450.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.2832, allocations: 350.9 kB / 450.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.2834, allocations: 83.95 kB / 451 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.2837, allocations: 213.1 kB / 451.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.2848, allocations: 0.5834 MB / 451.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.2849, allocations: 7.938 kB / 451.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009714/0.2858, allocations: 418.6 kB / 452.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.2859, allocations: 4 kB / 452.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.2859, allocations: 8 kB / 452.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003347/0.2862, allocations: 80.72 kB / 452.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.2865, allocations: 67.91 kB / 452.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.2886, allocations: 1.745 MB / 454.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.2889, allocations: 27.86 kB / 454.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.2889, allocations: 16 kB / 454.1 MB, free: 13.32 MB / 334.1 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002898/0.2892, allocations: 189.7 kB / 454.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.2893, allocations: 39.59 kB / 454.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.372e-05/0.2894, allocations: 43.31 kB / 454.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2894, allocations: 0 / 454.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2895, allocations: 7.938 kB / 454.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.2895, allocations: 3.984 kB / 454.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.2909, allocations: 0.7804 MB / 455.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.2909, allocations: 3.938 kB / 455.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.2912, allocations: 43.98 kB / 455.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.2913, allocations: 20.84 kB / 455.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.2913, allocations: 8.031 kB / 455.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009559/0.2923, allocations: 1.28 MB / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2923, allocations: 4.031 kB / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007919/0.2931, allocations: 0.5242 MB / 457.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.2932, allocations: 116.7 kB / 457.2 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.2933, allocations: 3.938 kB / 457.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.2935, allocations: 19.98 kB / 457.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/0.2936, allocations: 19.98 kB / 457.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.2936, allocations: 4 kB / 457.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.2939, allocations: 235.2 kB / 457.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2939, allocations: 0 / 457.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.2944, allocations: 84 kB / 457.5 MB, free: 9.637 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.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 (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001333/0.2945, allocations: 103.2 kB / 457.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008931/0.2954, allocations: 375.3 kB / 458 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2955, allocations: 7.938 kB / 458 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.2958, allocations: 218.7 kB / 458.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/0.2967, allocations: 104.3 kB / 458.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.299, allocations: 1.183 MB / 459.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.2995, allocations: 0.8428 MB / 460.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002925/0.2998, allocations: 51.25 kB / 460.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.252e-05/0.2999, allocations: 27.44 kB / 460.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2999, allocations: 0 / 460.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of Templates: time 0.01002/0.3099, allocations: 4.218 MB / 464.6 MB, free: 2.445 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) Environment - environmentSimulation: