Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001294/0.001295, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.435/1.435, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1874/0.1874, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001624/0.001624, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1215, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.0115/0.133, allocations: 5.683 MB / 493.5 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004943/0.138, allocations: 2.085 MB / 495.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006713/0.1387, allocations: 19.88 kB / 495.6 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.1397, allocations: 170.7 kB / 495.7 MB, free: 352 kB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001951/0.1418, allocations: 413.8 kB / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009638/0.1427, allocations: 228.1 kB / 496.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.1446, allocations: 0.8407 MB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.1457, allocations: 0.4967 MB / 497.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009093/0.1466, allocations: 350.6 kB / 498 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009134/0.1475, allocations: 346.6 kB / 498.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002063/0.1477, allocations: 56 kB / 498.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004639/0.1482, allocations: 99.92 kB / 498.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003175/0.1486, allocations: 183.5 kB / 498.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005662/0.1491, allocations: 310.5 kB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.1505, allocations: 0.7397 MB / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1505, allocations: 0 / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1505, allocations: 0 / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.1506, allocations: 4 kB / 499.8 MB, free: 12.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002643/0.1532, allocations: 0.8902 MB / 0.4889 GB, free: 11.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.1533, allocations: 15.89 kB / 0.4889 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.1535, allocations: 60.19 kB / 0.489 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1549, allocations: 0.5176 MB / 0.4895 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.317e-05/0.155, allocations: 37 kB / 0.4895 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.1552, allocations: 44 kB / 0.4896 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1565, allocations: 0.5173 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.1565, allocations: 7.906 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/0.1566, allocations: 20 kB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.1567, allocations: 13 kB / 0.4901 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000886/0.1576, allocations: 339.7 kB / 0.4904 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.1617, allocations: 2.058 MB / 0.4924 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006097/0.1623, allocations: 239.7 kB / 0.4927 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1625, allocations: 78.61 kB / 0.4928 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.1626, allocations: 4 kB / 0.4928 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/0.163, allocations: 173.7 kB / 0.4929 GB, free: 7.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 5.57e-06/0.163, allocations: 4 kB / 0.4929 GB, free: 7.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.0025/0.1655, allocations: 0.9158 MB / 0.4938 GB, free: 6.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.1656, allocations: 140.3 kB / 0.494 GB, free: 5.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007295/0.1664, allocations: 425.9 kB / 0.4944 GB, free: 5.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.1664, allocations: 33.95 kB / 0.4944 GB, free: 5.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.1667, allocations: 303.7 kB / 0.4947 GB, free: 5.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.1668, allocations: 86.8 kB / 0.4948 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.167, allocations: 74.05 kB / 0.4948 GB, free: 4.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1672, allocations: 362.7 kB / 0.4952 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.1675, allocations: 84.83 kB / 0.4953 GB, free: 4.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.1678, allocations: 217.5 kB / 0.4955 GB, free: 4.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006085/0.1685, allocations: 324 kB / 0.4958 GB, free: 3.836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1685, allocations: 4 kB / 0.4958 GB, free: 3.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001332/0.1698, allocations: 437.7 kB / 0.4962 GB, free: 3.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.1699, allocations: 8 kB / 0.4962 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.1699, allocations: 4 kB / 0.4962 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005878/0.1705, allocations: 96.75 kB / 0.4963 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.1709, allocations: 67.91 kB / 0.4964 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/0.174, allocations: 1.832 MB / 0.4982 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.1745, allocations: 23.98 kB / 0.4982 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.1745, allocations: 12 kB / 0.4982 GB, free: 1.207 MB / 382.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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003995/0.175, allocations: 209.8 kB / 0.4984 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.1751, allocations: 47.38 kB / 0.4984 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.1752, allocations: 51.86 kB / 0.4985 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1753, allocations: 4 kB / 0.4985 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1753, allocations: 0 / 0.4985 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.1753, allocations: 7.984 kB / 0.4985 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.1771, allocations: 0.7762 MB / 0.4993 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.1771, allocations: 4 kB / 0.4993 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/0.1775, allocations: 51.91 kB / 0.4993 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002181/0.1777, allocations: 48.81 kB / 0.4994 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.1777, allocations: 7.984 kB / 0.4994 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.1791, allocations: 1.539 MB / 0.5009 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1791, allocations: 0 / 0.5009 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/0.1798, allocations: 489.2 kB / 0.5013 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.18, allocations: 128.6 kB / 0.5015 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.1801, allocations: 8 kB / 0.5015 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.1803, allocations: 15.98 kB / 0.5015 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.031e-05/0.1804, allocations: 27.91 kB / 0.5015 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.1805, allocations: 8 kB / 0.5015 GB, free: 13.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003788/0.1809, allocations: 303.1 kB / 0.5018 GB, free: 13.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1809, allocations: 0 / 0.5018 GB, free: 13.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005787/0.1815, allocations: 112 kB / 0.5019 GB, free: 13.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0009568/0.1824, allocations: 397.1 kB / 0.5023 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008617/0.1833, allocations: 390.5 kB / 0.5027 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1833, allocations: 0 / 0.5027 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.1837, allocations: 239.5 kB / 0.5029 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007578/0.1845, allocations: 133.7 kB / 0.503 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.1867, allocations: 1.223 MB / 0.5042 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005415/0.1872, allocations: 0.8738 MB / 0.5051 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.1874, allocations: 43.36 kB / 0.5051 GB, free: 9.77 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1874, allocations: 0 / 0.5051 GB, free: 9.77 MB / 398.1 MB Notification: Performance of Templates: time 0.01459/0.202, allocations: 8.865 MB / 0.5138 GB, free: 0.8867 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)