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.0009461/0.0009462, allocations: 165.9 kB / 16.07 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007148/0.000715, allocations: 95.66 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1825/0.1825, allocations: 38.07 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000387/0.0003872, allocations: 8 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2379, allocations: 56.31 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004669/0.2426, allocations: 4.829 MB / 484.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00249/0.2452, allocations: 1.629 MB / 486.1 MB, free: 4.906 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004678/0.2457, allocations: 29.47 kB / 486.1 MB, free: 4.895 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004383/0.2461, allocations: 104.2 kB / 486.2 MB, free: 4.844 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008722/0.247, allocations: 281 kB / 486.5 MB, free: 4.684 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.2475, allocations: 133.7 kB / 486.6 MB, free: 4.617 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008784/0.2484, allocations: 0.6135 MB / 487.2 MB, free: 4.352 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.2489, allocations: 313.2 kB / 487.5 MB, free: 4.227 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.2492, allocations: 192 kB / 487.7 MB, free: 4.148 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.2496, allocations: 219.6 kB / 487.9 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.373e-05/0.2497, allocations: 19.53 kB / 488 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.59e-05/0.2497, allocations: 20.25 kB / 488 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.2499, allocations: 98.12 kB / 488.1 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.2501, allocations: 217.3 kB / 488.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.2506, allocations: 383.5 kB / 488.7 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2506, allocations: 0.8438 kB / 488.7 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2506, allocations: 4.938 kB / 488.7 MB, free: 3.793 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.2506, allocations: 4 kB / 488.7 MB, free: 3.789 MB / 314.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.001031/0.2517, allocations: 0.6413 MB / 489.3 MB, free: 3.277 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2517, allocations: 14.84 kB / 489.3 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.294e-05/0.2518, allocations: 42.47 kB / 489.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.2523, allocations: 391.1 kB / 489.7 MB, free: 2.949 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.45e-05/0.2524, allocations: 61.92 kB / 489.8 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.908e-05/0.2525, allocations: 36.03 kB / 489.8 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.2532, allocations: 430.5 kB / 490.3 MB, free: 2.645 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.2532, allocations: 9.344 kB / 490.3 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.2532, allocations: 16.69 kB / 490.3 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.2533, allocations: 9.203 kB / 490.3 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005397/0.2538, allocations: 277 kB / 490.6 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.2558, allocations: 1.85 MB / 492.4 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.2562, allocations: 177 kB / 492.6 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.2564, allocations: 85.77 kB / 492.7 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2564, allocations: 2.75 kB / 492.7 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.2564, allocations: 36.73 kB / 492.7 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of pre-optimization done (n=18): time 2.465e-06/0.2564, allocations: 1.375 kB / 492.7 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.001278/0.2577, allocations: 0.7132 MB / 493.4 MB, free: 340 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.2578, allocations: 106 kB / 493.5 MB, free: 212 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2581, allocations: 313.1 kB / 493.8 MB, free: 40 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.2581, allocations: 31.59 kB / 493.9 MB, free: 4 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.2583, allocations: 245.3 kB / 494.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.096e-05/0.2584, allocations: 71.16 kB / 494.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.2584, allocations: 9.281 kB / 494.2 MB, free: 15.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2586, allocations: 340.3 kB / 494.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2588, allocations: 77.69 kB / 494.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.259, allocations: 195.3 kB / 494.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/0.2595, allocations: 295.6 kB / 495.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2595, allocations: 1.5 kB / 495.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005637/0.2601, allocations: 330.3 kB / 495.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.2601, allocations: 6.906 kB / 495.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2601, allocations: 4.031 kB / 495.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.2601, allocations: 8.078 kB / 495.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.2604, allocations: 80.17 kB / 495.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.2605, allocations: 11.95 kB / 495.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.2607, allocations: 17.55 kB / 495.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.2607, allocations: 16.14 kB / 495.5 MB, free: 14.78 MB / 330.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.0002136/0.2609, allocations: 184 kB / 495.7 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.261, allocations: 34.41 kB / 495.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004683/0.2615, allocations: 199.5 kB / 495.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2615, allocations: 2.094 kB / 496 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2615, allocations: 5.219 kB / 496 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.2615, allocations: 2.641 kB / 496 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.2627, allocations: 0.6168 MB / 496.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.2627, allocations: 5.406 kB / 496.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.2629, allocations: 39.41 kB / 496.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2629, allocations: 5.25 kB / 496.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.263, allocations: 7.828 kB / 496.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.263, allocations: 1.734 kB / 496.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.263, allocations: 4.938 kB / 496.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006037/0.2636, allocations: 454.2 kB / 497.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.449e-05/0.2637, allocations: 102.3 kB / 497.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.2638, allocations: 7.125 kB / 497.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.2639, allocations: 5.609 kB / 497.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/0.264, allocations: 19.22 kB / 497.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.264, allocations: 9.797 kB / 497.2 MB, free: 13.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002366/0.2643, allocations: 227.4 kB / 497.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2643, allocations: 0 / 497.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004356/0.2647, allocations: 70.84 kB / 497.5 MB, free: 13.46 MB / 330.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.000117/0.2648, allocations: 98.52 kB / 497.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004489/0.2653, allocations: 202.3 kB / 497.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2653, allocations: 0 / 497.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.2655, allocations: 79.14 kB / 497.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000738/0.2662, allocations: 92.44 kB / 498 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2681, allocations: 1.147 MB / 499.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.2686, allocations: 0.8187 MB / 499.9 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.2687, allocations: 28.81 kB / 500 MB, free: 11.77 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2687, allocations: 0 / 500 MB, free: 11.77 MB / 330.7 MB Notification: Performance of Templates: time 0.009366/0.2781, allocations: 4.467 MB / 0.4926 GB, free: 9.992 MB / 330.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)