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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.002126/0.002126, allocations: 107.2 kB / 17.28 MB, free: 6.199 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.002597/0.002596, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.564/2.564, allocations: 222.9 MB / 241.9 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3943/0.3943, allocations: 38.02 MB / 330 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 71.2 kB / 398.9 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1843, allocations: 58.07 MB / 457 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.01029/0.1946, allocations: 5.435 MB / 462.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004154/0.1988, allocations: 1.663 MB / 464.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008162/0.1997, allocations: 31.81 kB / 464.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00061/0.2003, allocations: 91.42 kB / 464.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.2018, allocations: 246.7 kB / 464.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.2024, allocations: 131.8 kB / 464.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.2037, allocations: 0.576 MB / 465.2 MB, free: 176 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007971/0.2045, allocations: 390.7 kB / 465.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000509/0.205, allocations: 243 kB / 465.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005072/0.2055, allocations: 243 kB / 466 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.034e-05/0.2056, allocations: 40 kB / 466.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2058, allocations: 40 kB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.206, allocations: 119.6 kB / 466.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003186/0.2063, allocations: 230.9 kB / 466.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006222/0.2069, allocations: 403.1 kB / 466.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.2069, allocations: 0 / 466.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.2069, allocations: 3.984 kB / 466.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.207, allocations: 0 / 466.8 MB, free: 14.48 MB / 350.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.001871/0.2088, allocations: 0.6991 MB / 467.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/0.2089, allocations: 15.89 kB / 467.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.2091, allocations: 48.31 kB / 467.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009111/0.21, allocations: 404.1 kB / 468 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.2101, allocations: 62.64 kB / 468.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-05/0.2102, allocations: 35.98 kB / 468.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.2113, allocations: 436 kB / 468.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.2113, allocations: 0 / 468.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/0.2114, allocations: 15.98 kB / 468.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.2114, allocations: 8 kB / 468.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007229/0.2121, allocations: 274 kB / 468.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.2153, allocations: 1.845 MB / 470.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004944/0.2158, allocations: 179.6 kB / 470.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.216, allocations: 74.61 kB / 470.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.2161, allocations: 4 kB / 470.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.2161, allocations: 30.56 kB / 470.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.745e-06/0.2161, allocations: 0 / 470.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.002219/0.2184, allocations: 0.7131 MB / 471.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/0.2185, allocations: 110.8 kB / 471.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004959/0.219, allocations: 308.4 kB / 472.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.219, allocations: 29.7 kB / 472.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.2193, allocations: 243.6 kB / 472.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/0.2194, allocations: 74.92 kB / 472.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2195, allocations: 70 kB / 472.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003195/0.2199, allocations: 342.8 kB / 472.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.2201, allocations: 72.56 kB / 472.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/0.2205, allocations: 201.5 kB / 473.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005952/0.2211, allocations: 286.9 kB / 473.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2211, allocations: 0 / 473.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008361/0.2219, allocations: 335.5 kB / 473.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.222, allocations: 12.5 kB / 473.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.222, allocations: 4 kB / 473.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/0.222, allocations: 12 kB / 473.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.2225, allocations: 67.91 kB / 473.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.263e-05/0.2225, allocations: 15.92 kB / 473.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.2228, allocations: 19.94 kB / 473.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.2229, allocations: 12 kB / 473.8 MB, free: 6.977 MB / 350.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.0002933/0.2232, allocations: 173.8 kB / 474 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2233, allocations: 39.55 kB / 474 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005952/0.2239, allocations: 203 kB / 474.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.2239, allocations: 4 kB / 474.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2239, allocations: 0 / 474.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.2239, allocations: 0 / 474.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.2253, allocations: 0.6123 MB / 474.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.2253, allocations: 0 / 474.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003528/0.2257, allocations: 48 kB / 474.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.2257, allocations: 4 kB / 474.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.2258, allocations: 0 / 474.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.2258, allocations: 7.938 kB / 474.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2258, allocations: 0 / 474.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/0.2267, allocations: 458.8 kB / 475.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.2269, allocations: 104.7 kB / 475.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/0.227, allocations: 4 kB / 475.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.2272, allocations: 12.03 kB / 475.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.2274, allocations: 15.92 kB / 475.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.2274, allocations: 8 kB / 475.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.2277, allocations: 211.1 kB / 475.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2278, allocations: 7.938 kB / 475.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.2285, allocations: 75.94 kB / 475.8 MB, free: 4.902 MB / 350.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.0001985/0.2287, allocations: 107.2 kB / 475.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.2293, allocations: 200.7 kB / 476.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2293, allocations: 4.062 kB / 476.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.2296, allocations: 79.84 kB / 476.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009757/0.2306, allocations: 99.73 kB / 476.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.2332, allocations: 1.067 MB / 477.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.2338, allocations: 0.8107 MB / 478.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.234, allocations: 27.44 kB / 478.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.234, allocations: 0 / 478.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of Templates: time 0.01249/0.2465, allocations: 4.515 MB / 482.7 MB, free: 13.96 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (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)