Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 110.3 kB / 17.28 MB, free: 6.219 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.002275/0.002274, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.389/2.389, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4233/0.4233, allocations: 38.03 MB / 330.1 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 66.61 kB / 398.9 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.232, allocations: 58.06 MB / 457 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.01922/0.2513, allocations: 5.801 MB / 462.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007397/0.2588, allocations: 2.17 MB / 465 MB, free: 452 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009715/0.2598, allocations: 23.88 kB / 465 MB, free: 428 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001138/0.261, allocations: 127.2 kB / 465.1 MB, free: 300 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002224/0.2633, allocations: 334.2 kB / 465.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.2645, allocations: 195 kB / 465.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005849/0.2704, allocations: 0.6966 MB / 466.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.2718, allocations: 434.5 kB / 466.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.273, allocations: 286.8 kB / 467 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009323/0.274, allocations: 302.7 kB / 467.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002133/0.2742, allocations: 48 kB / 467.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005594/0.2748, allocations: 95.97 kB / 467.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000367/0.2752, allocations: 151.5 kB / 467.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006611/0.2759, allocations: 262.7 kB / 467.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.2771, allocations: 0.5145 MB / 468.4 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2772, allocations: 0 / 468.4 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.2772, allocations: 0 / 468.4 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.2772, allocations: 0 / 468.4 MB, free: 13 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003189/0.2804, allocations: 0.8428 MB / 469.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.609e-05/0.2805, allocations: 11.89 kB / 469.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2808, allocations: 56.28 kB / 469.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.2823, allocations: 474.2 kB / 469.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/0.2824, allocations: 29 kB / 469.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.2825, allocations: 36 kB / 469.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2838, allocations: 457.1 kB / 470.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.2839, allocations: 0 / 470.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.284, allocations: 20 kB / 470.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.284, allocations: 8 kB / 470.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009265/0.285, allocations: 286.3 kB / 470.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008857/0.2938, allocations: 1.859 MB / 472.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.2949, allocations: 259.5 kB / 472.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.2952, allocations: 86.92 kB / 472.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.033e-05/0.2953, allocations: 7.938 kB / 472.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005031/0.2959, allocations: 180.4 kB / 473 MB, free: 8.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.979e-06/0.2959, allocations: 0 / 473 MB, free: 8.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.003413/0.2993, allocations: 0.9063 MB / 473.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.2995, allocations: 132.5 kB / 474 MB, free: 7.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009829/0.3005, allocations: 406.1 kB / 474.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.3006, allocations: 37.69 kB / 474.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000323/0.3009, allocations: 259.7 kB / 474.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.3011, allocations: 94.66 kB / 474.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.3013, allocations: 77.53 kB / 474.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.3016, allocations: 350.8 kB / 475.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003155/0.3019, allocations: 83.91 kB / 475.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004572/0.3065, allocations: 212.2 kB / 475.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009163/0.3075, allocations: 323.9 kB / 475.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.3075, allocations: 3.938 kB / 475.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001688/0.3092, allocations: 433.6 kB / 476.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.3092, allocations: 8 kB / 476.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.3093, allocations: 4 kB / 476.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007646/0.3101, allocations: 89.06 kB / 476.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.3105, allocations: 67.91 kB / 476.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00478/0.3153, allocations: 2.01 MB / 478.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006377/0.316, allocations: 16 kB / 478.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-05/0.3161, allocations: 24.05 kB / 478.4 MB, free: 2.273 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0005407/0.3166, allocations: 197.6 kB / 478.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.3168, allocations: 39.53 kB / 478.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3181, allocations: 305.9 kB / 479 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.3181, allocations: 4 kB / 479 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.3182, allocations: 4 kB / 479 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3182, allocations: 4 kB / 479 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.3203, allocations: 0.761 MB / 479.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.3203, allocations: 0 / 479.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.3208, allocations: 43.92 kB / 479.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.3213, allocations: 56.8 kB / 479.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.3213, allocations: 7.938 kB / 479.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006563/0.3279, allocations: 1.551 MB / 481.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.328, allocations: 0 / 481.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.3295, allocations: 0.5015 MB / 481.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/0.3299, allocations: 132.7 kB / 482 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3301, allocations: 8 kB / 482 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005087/0.3306, allocations: 11.98 kB / 482 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3307, allocations: 23.91 kB / 482.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/0.3308, allocations: 11.94 kB / 482.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007233/0.3315, allocations: 287.1 kB / 482.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.3316, allocations: 4 kB / 482.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3327, allocations: 100 kB / 482.5 MB, free: 13.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00182/0.3345, allocations: 390.9 kB / 482.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3362, allocations: 423 kB / 483.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3362, allocations: 0 / 483.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006926/0.3369, allocations: 246.9 kB / 483.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.3383, allocations: 121.4 kB / 483.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008337/0.3466, allocations: 1.3 MB / 484.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/0.3476, allocations: 0.8504 MB / 485.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.3478, allocations: 39.42 kB / 485.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of SimCode: time 2.795e-06/0.3479, allocations: 0 / 485.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of Templates: time 0.02913/0.377, allocations: 8.191 MB / 494 MB, free: 2.516 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)