Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001005, allocations: 173 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007758/0.000776, allocations: 90.34 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3015/0.3015, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.000397, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1233, allocations: 56.34 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008993/0.1323, allocations: 5.12 MB / 484.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004747/0.1371, allocations: 2.02 MB / 486.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005816/0.1378, allocations: 27.81 kB / 486.2 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006515/0.1384, allocations: 131.2 kB / 486.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001308/0.1398, allocations: 346 kB / 486.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008112/0.1406, allocations: 191.7 kB / 486.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.1418, allocations: 0.7122 MB / 487.6 MB, free: 9.465 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007621/0.1426, allocations: 317.1 kB / 487.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006851/0.1433, allocations: 234.9 kB / 488.1 MB, free: 8.922 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006951/0.144, allocations: 262.9 kB / 488.4 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.1441, allocations: 27.94 kB / 488.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003571/0.1445, allocations: 67.97 kB / 488.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.1448, allocations: 115.6 kB / 488.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.145, allocations: 121.4 kB / 488.7 MB, free: 8.332 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008314/0.1459, allocations: 0.5025 MB / 489.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1459, allocations: 0 / 489.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.907e-06/0.1459, allocations: 3.938 kB / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.671e-05/0.146, allocations: 0 / 489.2 MB, free: 7.824 MB / 330.7 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.002458/0.1484, allocations: 0.7533 MB / 490 MB, free: 7.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.1485, allocations: 8.031 kB / 490 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.1488, allocations: 55.34 kB / 490 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.15, allocations: 457.7 kB / 490.5 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/0.1501, allocations: 29 kB / 490.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1502, allocations: 36 kB / 490.6 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.1515, allocations: 453.1 kB / 491 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/0.1515, allocations: 0 / 491 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.399e-05/0.1516, allocations: 19.95 kB / 491 MB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.487e-05/0.1517, allocations: 15.94 kB / 491 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000801/0.1525, allocations: 278.3 kB / 491.3 MB, free: 5.609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003397/0.1559, allocations: 1.855 MB / 493.2 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000727/0.1566, allocations: 248.2 kB / 493.4 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.1569, allocations: 86.98 kB / 493.5 MB, free: 3.281 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.502e-05/0.1569, allocations: 4.188 kB / 493.5 MB, free: 3.277 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003887/0.1573, allocations: 178.4 kB / 493.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.1573, allocations: 0 / 493.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.002672/0.16, allocations: 0.9059 MB / 494.6 MB, free: 2.117 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.1601, allocations: 132.5 kB / 494.7 MB, free: 1.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007461/0.1609, allocations: 402.2 kB / 495.1 MB, free: 1.562 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.161, allocations: 33.64 kB / 495.1 MB, free: 1.523 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.1612, allocations: 263.8 kB / 495.4 MB, free: 1.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.253e-05/0.1613, allocations: 98.64 kB / 495.5 MB, free: 1.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.1614, allocations: 4 kB / 495.5 MB, free: 1.156 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1615, allocations: 354.8 kB / 495.8 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.1617, allocations: 83.89 kB / 495.9 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.162, allocations: 216.2 kB / 496.1 MB, free: 460 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.1622, allocations: 115.9 kB / 496.2 MB, free: 344 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1622, allocations: 4 kB / 496.2 MB, free: 340 kB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008975/0.1631, allocations: 421.7 kB / 496.7 MB, free: 15.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1632, allocations: 4 kB / 496.7 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1632, allocations: 8 kB / 496.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005828/0.1638, allocations: 96.77 kB / 496.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.1641, allocations: 64.2 kB / 496.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003094/0.1672, allocations: 1.827 MB / 498.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.1676, allocations: 28.05 kB / 498.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/0.1677, allocations: 16 kB / 498.7 MB, free: 13.73 MB / 346.7 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 (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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003778/0.1681, allocations: 201.1 kB / 498.9 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.424e-05/0.1682, allocations: 39.53 kB / 498.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000814/0.169, allocations: 290.2 kB / 499.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.169, allocations: 7.953 kB / 499.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.1691, allocations: 8 kB / 499.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1691, allocations: 0 / 499.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.1707, allocations: 0.7686 MB / 500 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1707, allocations: 7.938 kB / 500 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.171, allocations: 39.97 kB / 0.4883 GB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002874/0.1713, allocations: 52.81 kB / 0.4884 GB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.1714, allocations: 8 kB / 0.4884 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.1732, allocations: 1.445 MB / 0.4898 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.1732, allocations: 0 / 0.4898 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1744, allocations: 0.4899 MB / 0.4903 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.1747, allocations: 132.6 kB / 0.4904 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.053e-05/0.1748, allocations: 12.06 kB / 0.4904 GB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003834/0.1751, allocations: 15.98 kB / 0.4904 GB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1753, allocations: 31.86 kB / 0.4904 GB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.1753, allocations: 4 kB / 0.4905 GB, free: 9.938 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005546/0.1759, allocations: 279.1 kB / 0.4907 GB, free: 9.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.534e-06/0.1759, allocations: 0 / 0.4907 GB, free: 9.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008943/0.1768, allocations: 111.9 kB / 0.4908 GB, free: 9.559 MB / 346.7 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 (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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001304/0.1781, allocations: 398.9 kB / 0.4912 GB, free: 9.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.1795, allocations: 399.2 kB / 0.4916 GB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.1796, allocations: 4.062 kB / 0.4916 GB, free: 8.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.1802, allocations: 238.5 kB / 0.4918 GB, free: 8.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.1815, allocations: 125.5 kB / 0.4919 GB, free: 8.441 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.1848, allocations: 1.398 MB / 0.4933 GB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006949/0.1855, allocations: 0.8581 MB / 0.4941 GB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.1857, allocations: 39.42 kB / 0.4942 GB, free: 6.082 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1857, allocations: 0 / 0.4942 GB, free: 6.082 MB / 346.7 MB Notification: Performance of Templates: time 0.01772/0.2035, allocations: 8.128 MB / 0.5021 GB, free: 13.95 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)