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.001012/0.001012, allocations: 94.42 kB / 16.3 MB, free: 6.457 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.00113/0.00113, allocations: 185.2 kB / 17.2 MB, free: 6.34 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.452/1.452, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1986/0.1986, allocations: 38.03 MB / 309.7 MB, free: 6.133 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.0005444/0.0005446, allocations: 12 kB / 376.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.289, allocations: 56.33 MB / 432.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00495/0.294, allocations: 4.617 MB / 437.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.2965, allocations: 1.611 MB / 439 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000406/0.297, allocations: 27.81 kB / 439.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004374/0.2974, allocations: 107.3 kB / 439.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007711/0.2982, allocations: 275.1 kB / 439.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004635/0.2987, allocations: 123.8 kB / 439.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005203/0.2992, allocations: 367.2 kB / 439.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003723/0.2996, allocations: 276.5 kB / 440.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.2998, allocations: 183.3 kB / 440.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.3001, allocations: 171.3 kB / 440.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.3001, allocations: 23.98 kB / 440.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.89e-05/0.3002, allocations: 20 kB / 440.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/0.3003, allocations: 91.67 kB / 440.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.157e-05/0.3004, allocations: 101.5 kB / 440.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.3007, allocations: 398.9 kB / 441.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3007, allocations: 0 / 441.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3007, allocations: 4 kB / 441.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3007, allocations: 0 / 441.2 MB, free: 10.46 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.001082/0.3018, allocations: 0.6405 MB / 441.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3019, allocations: 12.03 kB / 441.8 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.302, allocations: 47.48 kB / 441.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.3025, allocations: 379 kB / 442.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.31e-05/0.3026, allocations: 62.69 kB / 442.3 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.3027, allocations: 36 kB / 442.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.3032, allocations: 428.1 kB / 442.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.3033, allocations: 7.938 kB / 442.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.3033, allocations: 12 kB / 442.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.3033, allocations: 15.95 kB / 442.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004237/0.3037, allocations: 274 kB / 443 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.3055, allocations: 1.845 MB / 444.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.3058, allocations: 183.5 kB / 445.1 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.3058, allocations: 8.125 kB / 445.1 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.3058, allocations: 38.56 kB / 445.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/0.3059, allocations: 0 / 445.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.00113/0.307, allocations: 0.7067 MB / 445.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.3071, allocations: 106.8 kB / 445.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.3074, allocations: 312.4 kB / 446.2 MB, free: 5.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.3074, allocations: 33.7 kB / 446.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.3075, allocations: 235.6 kB / 446.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.3076, allocations: 75.03 kB / 446.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.3076, allocations: 4 kB / 446.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.3077, allocations: 350.8 kB / 446.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3079, allocations: 72.62 kB / 447 MB, free: 4.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.3081, allocations: 205.6 kB / 447.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.3083, allocations: 108.8 kB / 447.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3083, allocations: 4 kB / 447.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004772/0.3088, allocations: 326.2 kB / 447.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3088, allocations: 4 kB / 447.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3088, allocations: 8.031 kB / 447.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.3088, allocations: 8 kB / 447.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.3091, allocations: 83.83 kB / 447.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3091, allocations: 8 kB / 447.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.3093, allocations: 15.91 kB / 447.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3093, allocations: 19.98 kB / 447.8 MB, free: 3.398 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.3095, allocations: 185.7 kB / 447.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.3096, allocations: 31.58 kB / 448 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003585/0.3099, allocations: 200 kB / 448.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.31, allocations: 4 kB / 448.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.31, allocations: 0 / 448.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.31, allocations: 3.984 kB / 448.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000723/0.3107, allocations: 0.624 MB / 448.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3107, allocations: 0 / 448.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.3109, allocations: 43.91 kB / 448.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3109, allocations: 4 kB / 448.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.311, allocations: 4 kB / 448.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.311, allocations: 4 kB / 448.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.311, allocations: 0 / 448.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004926/0.3115, allocations: 497.2 kB / 449.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.3115, allocations: 104.7 kB / 449.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.3116, allocations: 0 / 449.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.3118, allocations: 8 kB / 449.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.3118, allocations: 19.92 kB / 449.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.3119, allocations: 12 kB / 449.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.312, allocations: 215.1 kB / 449.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.312, allocations: 4 kB / 449.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003687/0.3124, allocations: 72 kB / 449.8 MB, free: 1.258 MB / 318.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 (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.0001133/0.3125, allocations: 95.19 kB / 449.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.3129, allocations: 200.8 kB / 450 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3129, allocations: 3.938 kB / 450 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.3131, allocations: 87.75 kB / 450.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.3136, allocations: 87.45 kB / 450.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.3153, allocations: 1.109 MB / 451.3 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3158, allocations: 0.8226 MB / 452.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002389/0.316, allocations: 47.27 kB / 452.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.15e-05/0.3161, allocations: 23.44 kB / 452.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3161, allocations: 4 kB / 452.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of Templates: time 0.008219/0.3243, allocations: 3.111 MB / 455.3 MB, free: 11.62 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: