Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 117.8 kB / 17.7 MB, free: 5.305 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.001381/0.001381, allocations: 192 kB / 18.63 MB, free: 4.375 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.602/1.602, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1824/0.1824, allocations: 37.99 MB / 309.9 MB, free: 5.977 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.001465/0.001465, allocations: 67.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2763, allocations: 55.25 MB / 432 MB, free: 19.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004734/0.281, allocations: 4.535 MB / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2828, allocations: 1.539 MB / 438.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.283, allocations: 15.88 kB / 438.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003622/0.2834, allocations: 115.1 kB / 438.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000515/0.2839, allocations: 282.4 kB / 438.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.2841, allocations: 107.8 kB / 438.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.2847, allocations: 0.5058 MB / 439.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.2849, allocations: 159.9 kB / 439.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2851, allocations: 203.1 kB / 439.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.2853, allocations: 207.1 kB / 439.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.2854, allocations: 27.94 kB / 439.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.492e-05/0.2854, allocations: 28 kB / 439.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.031e-05/0.2855, allocations: 99.66 kB / 439.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2857, allocations: 183.1 kB / 440 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.286, allocations: 382.6 kB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.286, allocations: 0 / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.286, allocations: 0 / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.286, allocations: 0 / 440.4 MB, free: 11.27 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008798/0.2869, allocations: 0.6554 MB / 441 MB, free: 10.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2869, allocations: 15.89 kB / 441 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.401e-05/0.287, allocations: 44.38 kB / 441.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.2875, allocations: 403.6 kB / 441.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.2876, allocations: 36.48 kB / 441.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.2876, allocations: 24 kB / 441.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.288, allocations: 330.2 kB / 441.9 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.288, allocations: 11.94 kB / 441.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.2881, allocations: 8 kB / 441.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2881, allocations: 8 kB / 441.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.2883, allocations: 205.5 kB / 442.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.2894, allocations: 1.482 MB / 443.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/0.2898, allocations: 198.3 kB / 443.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.909e-05/0.2899, allocations: 79.47 kB / 443.8 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2899, allocations: 7.938 kB / 443.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.2899, allocations: 38.5 kB / 443.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.793e-06/0.29, allocations: 0 / 443.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008713/0.2908, allocations: 0.6772 MB / 444.6 MB, free: 6.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.2909, allocations: 132.5 kB / 444.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.2911, allocations: 321.6 kB / 445 MB, free: 6.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.2911, allocations: 25.7 kB / 445 MB, free: 6.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.476e-05/0.2912, allocations: 219.8 kB / 445.3 MB, free: 6.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.2913, allocations: 67.09 kB / 445.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.2914, allocations: 53.61 kB / 445.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.444e-05/0.2914, allocations: 342.9 kB / 445.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.806e-05/0.2915, allocations: 47.97 kB / 445.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2916, allocations: 152.8 kB / 445.9 MB, free: 5.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.2918, allocations: 224.8 kB / 446.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2918, allocations: 0 / 446.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002961/0.2921, allocations: 268.8 kB / 446.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2922, allocations: 4 kB / 446.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2922, allocations: 4 kB / 446.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2922, allocations: 11.94 kB / 446.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.2925, allocations: 84.33 kB / 446.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005855/0.2931, allocations: 1.381 MB / 447.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.2933, allocations: 8 kB / 447.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.2933, allocations: 12 kB / 447.9 MB, free: 3.121 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.2934, allocations: 173.6 kB / 448.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/0.2935, allocations: 31.62 kB / 448.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/0.2938, allocations: 184.6 kB / 448.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2938, allocations: 4 kB / 448.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2938, allocations: 0 / 448.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2938, allocations: 0 / 448.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006145/0.2944, allocations: 0.5412 MB / 448.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2944, allocations: 0 / 448.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.2947, allocations: 43.98 kB / 448.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2947, allocations: 0 / 448.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.2947, allocations: 8.031 kB / 448.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2947, allocations: 0 / 448.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2947, allocations: 11.88 kB / 448.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.2951, allocations: 494.3 kB / 449.4 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.2951, allocations: 112.7 kB / 449.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.2952, allocations: 8 kB / 449.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.2954, allocations: 4 kB / 449.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.088e-05/0.2954, allocations: 15.92 kB / 449.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.2954, allocations: 8 kB / 449.5 MB, free: 1.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.2956, allocations: 227.1 kB / 449.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2956, allocations: 0 / 449.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003867/0.296, allocations: 60 kB / 449.8 MB, free: 1.109 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,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 (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 9.641e-05/0.2961, allocations: 103.2 kB / 449.9 MB, free: 1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.2964, allocations: 159.7 kB / 450 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2964, allocations: 0 / 450 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.909e-05/0.2965, allocations: 72.55 kB / 450.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006609/0.2972, allocations: 97.12 kB / 450.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.2984, allocations: 0.8231 MB / 451 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.2988, allocations: 0.8028 MB / 451.8 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.299, allocations: 50.94 kB / 451.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.2991, allocations: 23.44 kB / 451.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2991, allocations: 0 / 451.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Templates: time 0.007333/0.3064, allocations: 3.204 MB / 455.1 MB, free: 11.74 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)