Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008085/0.0008085, allocations: 88.89 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.0008806/0.0008808, allocations: 176.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.557/1.557, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1848/0.1848, allocations: 38.06 MB / 310.1 MB, free: 5.91 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.0005943/0.0005944, allocations: 16.5 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2656, allocations: 56.34 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.004993/0.2707, allocations: 5.901 MB / 439.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.2735, allocations: 2.241 MB / 441.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.2739, allocations: 27.81 kB / 441.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004401/0.2743, allocations: 155.1 kB / 441.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006644/0.275, allocations: 366.2 kB / 442.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.2754, allocations: 211.7 kB / 442.4 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008235/0.2763, allocations: 1.059 MB / 443.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000376/0.2767, allocations: 402.8 kB / 443.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003117/0.277, allocations: 290.6 kB / 444.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.2773, allocations: 318.7 kB / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.2774, allocations: 24 kB / 444.5 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.2775, allocations: 79.97 kB / 444.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.2777, allocations: 159.4 kB / 444.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2778, allocations: 292.3 kB / 445 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.2783, allocations: 0.6928 MB / 445.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2783, allocations: 4 kB / 445.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2783, allocations: 0 / 445.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.2783, allocations: 0 / 445.7 MB, free: 6.441 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001289/0.2796, allocations: 0.7968 MB / 446.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.2797, allocations: 19.97 kB / 446.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.2798, allocations: 60.19 kB / 446.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006838/0.2805, allocations: 0.494 MB / 447 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.2805, allocations: 37 kB / 447.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2807, allocations: 43.91 kB / 447.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.2813, allocations: 0.5212 MB / 447.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.2814, allocations: 4 kB / 447.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.2814, allocations: 19.94 kB / 447.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.589e-05/0.2815, allocations: 13 kB / 447.7 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004615/0.282, allocations: 343.7 kB / 448 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.284, allocations: 2.066 MB / 450.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.2843, allocations: 239.6 kB / 450.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2844, allocations: 82.67 kB / 450.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.2845, allocations: 0 / 450.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/0.2847, allocations: 173.9 kB / 450.6 MB, free: 1.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.2847, allocations: 4 kB / 450.6 MB, free: 1.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001366/0.2861, allocations: 0.92 MB / 451.5 MB, free: 264 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.2861, allocations: 128.5 kB / 451.6 MB, free: 104 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.2866, allocations: 429.8 kB / 452 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.2866, allocations: 33.7 kB / 452.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.2869, allocations: 295.6 kB / 452.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.015e-05/0.2869, allocations: 86.8 kB / 452.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/0.287, allocations: 41.64 kB / 452.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2872, allocations: 358.7 kB / 452.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.2873, allocations: 88.83 kB / 452.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.2876, allocations: 229.4 kB / 453.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.288, allocations: 316.1 kB / 453.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.288, allocations: 4 kB / 453.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008063/0.2888, allocations: 441.4 kB / 453.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.2889, allocations: 8 kB / 453.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.2889, allocations: 4 kB / 453.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000398/0.2893, allocations: 97.22 kB / 454 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.2896, allocations: 75.89 kB / 454.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.2915, allocations: 1.702 MB / 455.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.2918, allocations: 24 kB / 455.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.2919, allocations: 16 kB / 455.8 MB, free: 11.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0002671/0.2921, allocations: 213.6 kB / 456 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.663e-05/0.2922, allocations: 43.44 kB / 456.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005731/0.2928, allocations: 282 kB / 456.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.2928, allocations: 7.938 kB / 456.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2928, allocations: 7.984 kB / 456.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2928, allocations: 4 kB / 456.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.2939, allocations: 0.7726 MB / 457.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.294, allocations: 0 / 457.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.2942, allocations: 43.92 kB / 457.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.2944, allocations: 56.8 kB / 457.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.2945, allocations: 7.938 kB / 457.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.2957, allocations: 1.441 MB / 458.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2957, allocations: 0 / 458.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.2964, allocations: 477.2 kB / 459.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.2966, allocations: 140.6 kB / 459.3 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.2966, allocations: 12 kB / 459.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.2968, allocations: 15.98 kB / 459.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.128e-05/0.2969, allocations: 23.91 kB / 459.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.2969, allocations: 8 kB / 459.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003505/0.2973, allocations: 295.1 kB / 459.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2973, allocations: 0 / 459.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.2978, allocations: 116 kB / 459.7 MB, free: 7.418 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008813/0.2987, allocations: 415.9 kB / 460.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007311/0.2995, allocations: 383.2 kB / 460.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2995, allocations: 0 / 460.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000365/0.2999, allocations: 242.7 kB / 460.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.3006, allocations: 125.1 kB / 460.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.3027, allocations: 1.503 MB / 462.4 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3032, allocations: 0.874 MB / 463.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.3035, allocations: 64.23 kB / 463.3 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.001e-05/0.3036, allocations: 39.36 kB / 463.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3036, allocations: 0 / 463.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of Templates: time 0.01222/0.3158, allocations: 6.067 MB / 469.4 MB, free: 13.7 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) Environment - environmentSimulation: