Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001107/0.001107, allocations: 182.8 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.433/1.433, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001599/0.001599, allocations: 116.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1731/0.1731, allocations: 37.92 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.153e-05, allocations: 0 / 397.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2367, allocations: 53.22 MB / 450.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.6402, allocations: 95 MB / 0.533 GB, free: 32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.6405, allocations: 89.48 kB / 0.533 GB, free: 32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03327/0.6738, allocations: 12.98 MB / 0.5457 GB, free: 30.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6738, allocations: 0 / 0.5457 GB, free: 30.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.6739, allocations: 10.41 kB / 0.5457 GB, free: 30.42 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001019/0.6749, allocations: 0.6884 MB / 0.5464 GB, free: 29.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.675, allocations: 8.281 kB / 0.5464 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.6751, allocations: 57.84 kB / 0.5465 GB, free: 29.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.6763, allocations: 0.6564 MB / 0.5471 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.08e-05/0.6764, allocations: 60.77 kB / 0.5472 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.479e-05/0.6765, allocations: 50.09 kB / 0.5472 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006636/0.6772, allocations: 496 kB / 0.5477 GB, free: 29.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.6772, allocations: 7.188 kB / 0.5477 GB, free: 29.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.6773, allocations: 22.92 kB / 0.5477 GB, free: 29.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.6773, allocations: 11.72 kB / 0.5477 GB, free: 29.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004641/0.6777, allocations: 309.8 kB / 0.548 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.6797, allocations: 1.993 MB / 0.55 GB, free: 28.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.6801, allocations: 203.7 kB / 0.5502 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.6802, allocations: 92.88 kB / 0.5502 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.6802, allocations: 3.875 kB / 0.5503 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.6802, allocations: 34.17 kB / 0.5503 GB, free: 28.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 1.854e-06/0.6802, allocations: 0 / 0.5503 GB, free: 28.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001326/0.6816, allocations: 0.9539 MB / 0.5512 GB, free: 27.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.6816, allocations: 106.9 kB / 0.5513 GB, free: 27.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.6819, allocations: 288.1 kB / 0.5516 GB, free: 27.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.6819, allocations: 29.45 kB / 0.5516 GB, free: 27.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.682, allocations: 273.3 kB / 0.5519 GB, free: 27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.6821, allocations: 84.89 kB / 0.552 GB, free: 26.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.6821, allocations: 3.625 kB / 0.552 GB, free: 26.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.6821, allocations: 344.5 kB / 0.5523 GB, free: 26.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.6823, allocations: 76.86 kB / 0.5524 GB, free: 26.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.6824, allocations: 200.3 kB / 0.5526 GB, free: 26.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005312/0.6829, allocations: 283.8 kB / 0.5528 GB, free: 26.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.683, allocations: 3.938 kB / 0.5528 GB, free: 26.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005858/0.6835, allocations: 396 kB / 0.5532 GB, free: 26.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.6836, allocations: 8.594 kB / 0.5532 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.6836, allocations: 3.906 kB / 0.5532 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002933/0.6839, allocations: 84.7 kB / 0.5533 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.6841, allocations: 69.67 kB / 0.5534 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.6857, allocations: 1.794 MB / 0.5551 GB, free: 24.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.6859, allocations: 22.97 kB / 0.5551 GB, free: 24.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.686, allocations: 11.72 kB / 0.5552 GB, free: 24.86 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 8.379e-05/0.686, allocations: 135.9 kB / 0.5553 GB, free: 24.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-05/0.6861, allocations: 31.19 kB / 0.5553 GB, free: 24.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.499e-05/0.6862, allocations: 44.62 kB / 0.5554 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.6862, allocations: 7.828 kB / 0.5554 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6862, allocations: 0 / 0.5554 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6862, allocations: 0 / 0.5554 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009358/0.6872, allocations: 0.7658 MB / 0.5561 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6872, allocations: 3.906 kB / 0.5561 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.6874, allocations: 48.88 kB / 0.5562 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-05/0.6875, allocations: 27.3 kB / 0.5562 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.6876, allocations: 7.312 kB / 0.5562 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005943/0.6882, allocations: 1.283 MB / 0.5574 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6882, allocations: 0 / 0.5574 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.6886, allocations: 0.4998 MB / 0.5579 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.551e-05/0.6887, allocations: 129.2 kB / 0.5581 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.6888, allocations: 3.812 kB / 0.5581 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.689, allocations: 14.88 kB / 0.5581 GB, free: 22.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.049e-05/0.6891, allocations: 21.84 kB / 0.5581 GB, free: 22.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.6891, allocations: 7.906 kB / 0.5581 GB, free: 22.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001816/0.6893, allocations: 223.8 kB / 0.5583 GB, free: 22.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6893, allocations: 0 / 0.5583 GB, free: 22.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004886/0.6898, allocations: 96.25 kB / 0.5584 GB, free: 22.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000168/0.69, allocations: 121.4 kB / 0.5585 GB, free: 22.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005202/0.6905, allocations: 374.6 kB / 0.5589 GB, free: 22.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.6905, allocations: 0 / 0.5589 GB, free: 22.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.6907, allocations: 200.5 kB / 0.5591 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.6912, allocations: 92.83 kB / 0.5592 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.6923, allocations: 0.666 MB / 0.5598 GB, free: 21.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.6926, allocations: 0.8634 MB / 0.5607 GB, free: 21.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002136/0.6928, allocations: 56.22 kB / 0.5607 GB, free: 21.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.6929, allocations: 30.88 kB / 0.5607 GB, free: 21.11 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.6929, allocations: 0 / 0.5607 GB, free: 21.11 MB / 378.7 MB Notification: Performance of Templates: time 0.007675/0.7005, allocations: 4.476 MB / 0.5651 GB, free: 20.76 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)