Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001557/0.001557, allocations: 173.1 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.837/2.837, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001164, allocations: 81.05 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.408/0.408, allocations: 38.08 MB / 357.6 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006581/0.0006582, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.592/0.5927, allocations: 56.33 MB / 480.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.228/0.8208, allocations: 99.55 MB / 0.5662 GB, free: 2.793 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004602/0.8214, allocations: 99.94 kB / 0.5663 GB, free: 2.695 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05488/0.8763, allocations: 11.41 MB / 0.5775 GB, free: 7.141 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.8763, allocations: 0 / 0.5775 GB, free: 7.141 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.884e-05/0.8764, allocations: 12.44 kB / 0.5775 GB, free: 7.129 MB / 410.7 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.002218/0.8787, allocations: 0.6646 MB / 0.5781 GB, free: 6.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.227e-05/0.8787, allocations: 8.031 kB / 0.5781 GB, free: 6.402 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.879, allocations: 44.47 kB / 0.5782 GB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.8807, allocations: 475.9 kB / 0.5786 GB, free: 5.852 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.8809, allocations: 59.25 kB / 0.5787 GB, free: 5.789 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.8811, allocations: 36.38 kB / 0.5787 GB, free: 5.754 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.8825, allocations: 438.4 kB / 0.5791 GB, free: 5.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.09e-05/0.8825, allocations: 7.875 kB / 0.5792 GB, free: 5.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.8826, allocations: 16 kB / 0.5792 GB, free: 5.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.449e-05/0.8827, allocations: 12 kB / 0.5792 GB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009402/0.8836, allocations: 266 kB / 0.5794 GB, free: 4.984 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004062/0.8877, allocations: 1.88 MB / 0.5813 GB, free: 2.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.8884, allocations: 179.7 kB / 0.5814 GB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.8886, allocations: 88.33 kB / 0.5815 GB, free: 2.688 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.8887, allocations: 7.938 kB / 0.5815 GB, free: 2.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.8888, allocations: 38.5 kB / 0.5816 GB, free: 2.633 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 4.889e-06/0.8888, allocations: 0 / 0.5816 GB, free: 2.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.002612/0.8914, allocations: 0.7215 MB / 0.5823 GB, free: 1.855 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.8915, allocations: 102.8 kB / 0.5824 GB, free: 1.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006703/0.8922, allocations: 320.3 kB / 0.5827 GB, free: 1.414 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.8923, allocations: 29.7 kB / 0.5827 GB, free: 1.379 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/0.8926, allocations: 243.7 kB / 0.5829 GB, free: 1.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.8927, allocations: 71 kB / 0.583 GB, free: 1.066 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.8927, allocations: 8 kB / 0.583 GB, free: 1.059 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.8929, allocations: 350.7 kB / 0.5833 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.8932, allocations: 76.55 kB / 0.5834 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.8937, allocations: 201.6 kB / 0.5836 GB, free: 384 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007529/0.8944, allocations: 300.4 kB / 0.5839 GB, free: 24 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.8945, allocations: 0 / 0.5839 GB, free: 24 kB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001045/0.8955, allocations: 337.1 kB / 0.5842 GB, free: 15.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.8956, allocations: 4 kB / 0.5842 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.8956, allocations: 4 kB / 0.5842 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.35e-05/0.8957, allocations: 8 kB / 0.5842 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.8962, allocations: 79.89 kB / 0.5843 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.415e-05/0.8962, allocations: 11.94 kB / 0.5843 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.8966, allocations: 28.09 kB / 0.5844 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.8967, allocations: 16 kB / 0.5844 GB, free: 15.54 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004111/0.8971, allocations: 181.7 kB / 0.5845 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.8973, allocations: 27.62 kB / 0.5846 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007171/0.898, allocations: 196.7 kB / 0.5848 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.898, allocations: 4 kB / 0.5848 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.8981, allocations: 4 kB / 0.5848 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.07e-05/0.8981, allocations: 11.92 kB / 0.5848 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.8999, allocations: 0.6333 MB / 0.5854 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.8999, allocations: 0 / 0.5854 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003987/0.9004, allocations: 40 kB / 0.5854 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.611e-05/0.9004, allocations: 11.94 kB / 0.5854 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.9004, allocations: 4 kB / 0.5854 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.288e-05/0.9005, allocations: 7.938 kB / 0.5855 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.9005, allocations: 0 / 0.5855 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.9015, allocations: 460.4 kB / 0.5859 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.9017, allocations: 104.7 kB / 0.586 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.929e-05/0.9018, allocations: 11.94 kB / 0.586 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.9022, allocations: 8 kB / 0.586 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.9023, allocations: 19.91 kB / 0.586 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.9024, allocations: 4 kB / 0.586 GB, free: 13.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004104/0.9028, allocations: 219.1 kB / 0.5862 GB, free: 13.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.9028, allocations: 0 / 0.5862 GB, free: 13.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008206/0.9036, allocations: 76 kB / 0.5863 GB, free: 13.43 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003312/0.904, allocations: 119.2 kB / 0.5864 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000707/0.9047, allocations: 200.8 kB / 0.5866 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.9047, allocations: 0 / 0.5866 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002632/0.905, allocations: 92.02 kB / 0.5867 GB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.9061, allocations: 88.09 kB / 0.5868 GB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.909, allocations: 1.158 MB / 0.5879 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.9096, allocations: 0.8227 MB / 0.5887 GB, free: 10.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.9098, allocations: 31.38 kB / 0.5888 GB, free: 10.85 MB / 426.7 MB Notification: Performance of SimCode: time 2.174e-06/0.9098, allocations: 0 / 0.5888 GB, free: 10.85 MB / 426.7 MB Notification: Performance of Templates: time 0.01304/0.9228, allocations: 4.635 MB / 0.5933 GB, free: 6.211 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)