Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008149/0.0008151, allocations: 87.58 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.0008906/0.0008908, allocations: 176.2 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.42/1.42, 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.1662/0.1662, allocations: 38.06 MB / 310.1 MB, free: 5.898 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.0004825/0.0004825, allocations: 16 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2643, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006384/0.2707, allocations: 5.036 MB / 438.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.2735, allocations: 1.711 MB / 440.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006714/0.2742, allocations: 27.81 kB / 440.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004602/0.2747, allocations: 91.42 kB / 440.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007531/0.2755, allocations: 234.8 kB / 440.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003652/0.2759, allocations: 127.8 kB / 440.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008263/0.2767, allocations: 0.7125 MB / 441.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004079/0.2771, allocations: 309.5 kB / 441.7 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.2774, allocations: 195.1 kB / 441.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.2778, allocations: 223.1 kB / 442.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.832e-05/0.2779, allocations: 20 kB / 442.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.2779, allocations: 20 kB / 442.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.584e-05/0.278, allocations: 95.66 kB / 442.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2782, allocations: 224.6 kB / 442.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003638/0.2786, allocations: 490.2 kB / 443 MB, free: 9.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2786, allocations: 0 / 443 MB, free: 9.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2786, allocations: 0 / 443 MB, free: 9.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.2786, allocations: 0 / 443 MB, free: 9.148 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001088/0.2797, allocations: 0.6368 MB / 443.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.2798, allocations: 8.031 kB / 443.6 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.2799, allocations: 44.47 kB / 443.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.2805, allocations: 403.9 kB / 444 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.521e-05/0.2806, allocations: 54.7 kB / 444.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.2806, allocations: 36 kB / 444.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006237/0.2813, allocations: 436.1 kB / 444.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.2813, allocations: 3.906 kB / 444.6 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.2813, allocations: 12 kB / 444.6 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.2814, allocations: 8 kB / 444.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.2818, allocations: 282 kB / 444.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.2836, allocations: 1.853 MB / 446.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.2839, allocations: 191.5 kB / 446.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.2841, allocations: 74.61 kB / 447 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.2841, allocations: 3.984 kB / 447 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2841, allocations: 50.5 kB / 447 MB, free: 4.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.403e-06/0.2842, allocations: 0 / 447 MB, free: 4.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001263/0.2854, allocations: 0.7143 MB / 447.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.2855, allocations: 106.8 kB / 447.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.2858, allocations: 312.4 kB / 448.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2858, allocations: 29.7 kB / 448.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.2859, allocations: 247.5 kB / 448.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.286, allocations: 67 kB / 448.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.2861, allocations: 37.7 kB / 448.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.966e-05/0.2861, allocations: 338.9 kB / 448.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.2863, allocations: 76.61 kB / 448.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.2865, allocations: 205.5 kB / 449.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.2868, allocations: 296 kB / 449.4 MB, free: 2.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2868, allocations: 8 kB / 449.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004978/0.2873, allocations: 325.3 kB / 449.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2874, allocations: 12 kB / 449.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2874, allocations: 4 kB / 449.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.2874, allocations: 8 kB / 449.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.2877, allocations: 79.83 kB / 449.8 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.2877, allocations: 7.984 kB / 449.9 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.2879, allocations: 12 kB / 449.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.2879, allocations: 23.98 kB / 449.9 MB, free: 1.695 MB / 318.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.2881, allocations: 185.6 kB / 450.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/0.2882, allocations: 35.56 kB / 450.1 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.2885, allocations: 196.7 kB / 450.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2885, allocations: 0 / 450.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2886, allocations: 4 kB / 450.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2886, allocations: 3.984 kB / 450.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007234/0.2893, allocations: 0.627 MB / 450.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.2893, allocations: 0 / 450.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002106/0.2895, allocations: 47.86 kB / 451 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.2895, allocations: 4 kB / 451 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.2896, allocations: 0 / 451 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2896, allocations: 4 kB / 451 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2896, allocations: 8.016 kB / 451 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004703/0.2901, allocations: 460.4 kB / 451.4 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.957e-05/0.2902, allocations: 108.8 kB / 451.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.2902, allocations: 8 kB / 451.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.2904, allocations: 7.938 kB / 451.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.2905, allocations: 15.97 kB / 451.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2905, allocations: 4 kB / 451.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.2907, allocations: 223 kB / 451.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2907, allocations: 0 / 451.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004018/0.2911, allocations: 68 kB / 451.9 MB, free: 15.6 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001186/0.2913, allocations: 107.2 kB / 452 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000443/0.2917, allocations: 196.5 kB / 452.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2917, allocations: 256 / 452.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.2919, allocations: 87.84 kB / 452.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.2926, allocations: 81.38 kB / 452.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.2942, allocations: 1.131 MB / 453.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.2946, allocations: 0.8227 MB / 454.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.2948, allocations: 47.25 kB / 454.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.2949, allocations: 27.44 kB / 454.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2949, allocations: 3.938 kB / 454.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of Templates: time 0.007056/0.302, allocations: 3.204 MB / 457.6 MB, free: 9.836 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) Environment - environmentSimulation: