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 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_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.001087/0.001087, allocations: 90.81 kB / 16.65 MB, free: 6.598 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.001276/0.001276, allocations: 182.2 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1954/0.1954, allocations: 38.08 MB / 330.8 MB, free: 8.473 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003904/0.0003902, allocations: 9.75 kB / 400.7 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1429, allocations: 59.17 MB / 459.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007912/0.1509, allocations: 5.901 MB / 465.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.155, allocations: 2.279 MB / 468.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003434/0.1554, allocations: 35.75 kB / 468.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005472/0.156, allocations: 143.2 kB / 468.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009296/0.1569, allocations: 374.2 kB / 468.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.1575, allocations: 217 kB / 468.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.1588, allocations: 1.071 MB / 469.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005453/0.1594, allocations: 398.8 kB / 470.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005004/0.1599, allocations: 286.7 kB / 470.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004788/0.1604, allocations: 326.6 kB / 470.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/0.1605, allocations: 28 kB / 470.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.1607, allocations: 63.98 kB / 471 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1608, allocations: 151.5 kB / 471.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004843/0.1613, allocations: 300.2 kB / 471.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.1624, allocations: 0.6928 MB / 472.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1624, allocations: 0 / 472.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1624, allocations: 0 / 472.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1624, allocations: 4 kB / 472.1 MB, free: 10.75 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00159/0.164, allocations: 0.8007 MB / 472.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1641, allocations: 8.031 kB / 472.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.1642, allocations: 64.19 kB / 473 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008344/0.165, allocations: 0.4979 MB / 473.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.1651, allocations: 29 kB / 473.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.1653, allocations: 51.94 kB / 473.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008046/0.1661, allocations: 0.5134 MB / 474.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.1661, allocations: 0 / 474.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.1662, allocations: 20 kB / 474.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.366e-05/0.1663, allocations: 21 kB / 474.1 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005605/0.1668, allocations: 339.7 kB / 474.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.1694, allocations: 2.074 MB / 476.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.1698, allocations: 231.7 kB / 476.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1701, allocations: 82.61 kB / 476.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.1701, allocations: 11.94 kB / 476.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.1704, allocations: 161.7 kB / 477 MB, free: 5.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1704, allocations: 0 / 477 MB, free: 5.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.002/0.1724, allocations: 0.9248 MB / 477.9 MB, free: 4.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/0.1725, allocations: 136.5 kB / 478 MB, free: 4.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005485/0.1731, allocations: 429.8 kB / 478.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.1731, allocations: 29.7 kB / 478.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.1733, allocations: 291.9 kB / 478.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.162e-05/0.1734, allocations: 98.88 kB / 478.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-05/0.1735, allocations: 41.69 kB / 478.9 MB, free: 3.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1737, allocations: 350.7 kB / 479.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.1738, allocations: 92.83 kB / 479.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.1741, allocations: 221.8 kB / 479.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004249/0.1745, allocations: 320 kB / 479.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1745, allocations: 4 kB / 479.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009374/0.1755, allocations: 441.8 kB / 480.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1755, allocations: 8 kB / 480.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1755, allocations: 4 kB / 480.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.176, allocations: 84.78 kB / 480.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.1762, allocations: 79.84 kB / 480.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.1785, allocations: 1.713 MB / 482.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.1788, allocations: 23.94 kB / 482.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.1788, allocations: 12 kB / 482.2 MB, free: 15.93 MB / 366.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.0002754/0.1791, allocations: 209.7 kB / 482.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.1792, allocations: 43.5 kB / 482.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005383/0.1797, allocations: 292 kB / 482.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1797, allocations: 4 kB / 482.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-06/0.1797, allocations: 0 / 482.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1798, allocations: 3.984 kB / 482.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.181, allocations: 0.7801 MB / 483.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.181, allocations: 4 kB / 483.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.1813, allocations: 47.92 kB / 483.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002054/0.1815, allocations: 48.8 kB / 483.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.1815, allocations: 11.88 kB / 483.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.183, allocations: 1.441 MB / 485.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.183, allocations: 0 / 485.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006983/0.1837, allocations: 488.8 kB / 485.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1839, allocations: 140.6 kB / 485.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.1839, allocations: 8 kB / 485.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.1841, allocations: 8 kB / 485.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.1842, allocations: 23.91 kB / 485.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.1842, allocations: 19.98 kB / 485.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.1846, allocations: 295.1 kB / 486.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1846, allocations: 0 / 486.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006085/0.1852, allocations: 112 kB / 486.2 MB, free: 11.73 MB / 366.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.001016/0.1862, allocations: 398.6 kB / 486.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007739/0.187, allocations: 390.5 kB / 486.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.187, allocations: 0 / 486.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003866/0.1874, allocations: 243.4 kB / 487.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007704/0.1882, allocations: 117.9 kB / 487.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.1904, allocations: 1.495 MB / 488.8 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008894/0.1913, allocations: 0.8856 MB / 489.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002718/0.1916, allocations: 64.23 kB / 489.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.589e-05/0.1917, allocations: 39.36 kB / 489.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1917, allocations: 0 / 489.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of Templates: time 0.01303/0.2048, allocations: 6.086 MB / 495.9 MB, free: 2.16 MB / 366.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)