Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.00159, allocations: 187.6 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001149/0.001149, allocations: 102.8 kB / 270.2 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2772/0.2772, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006296/0.0006297, allocations: 15.98 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1157, allocations: 56.32 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.009171/0.1249, allocations: 5.161 MB / 484.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004399/0.1294, allocations: 1.767 MB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006749/0.1301, allocations: 35.81 kB / 486 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000539/0.1307, allocations: 127.2 kB / 486.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001346/0.1321, allocations: 315 kB / 486.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007856/0.1329, allocations: 167.7 kB / 486.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.134, allocations: 415.2 kB / 487 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006521/0.1347, allocations: 325.2 kB / 487.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005289/0.1352, allocations: 211.2 kB / 487.5 MB, free: 9.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004342/0.1357, allocations: 211.1 kB / 487.7 MB, free: 9.312 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.296e-05/0.1358, allocations: 24 kB / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1359, allocations: 24 kB / 487.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.1361, allocations: 115.6 kB / 487.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.1363, allocations: 121.5 kB / 488 MB, free: 9.027 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006826/0.137, allocations: 458.8 kB / 488.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.137, allocations: 4 kB / 488.5 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.137, allocations: 0 / 488.5 MB, free: 8.574 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.137, allocations: 0 / 488.5 MB, free: 8.574 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00187/0.1389, allocations: 0.7034 MB / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.139, allocations: 11.98 kB / 489.2 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.1391, allocations: 55.39 kB / 489.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.1402, allocations: 430.8 kB / 489.6 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1403, allocations: 62.7 kB / 489.7 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.1405, allocations: 40 kB / 489.7 MB, free: 7.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1419, allocations: 0.5008 MB / 490.2 MB, free: 6.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.574e-05/0.1419, allocations: 11.91 kB / 490.3 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.128e-05/0.142, allocations: 16 kB / 490.3 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.1421, allocations: 15.95 kB / 490.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.1432, allocations: 343.7 kB / 490.6 MB, free: 6.266 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.1471, allocations: 1.984 MB / 492.6 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007411/0.1479, allocations: 215.7 kB / 492.8 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.148, allocations: 19.91 kB / 492.8 MB, free: 3.906 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.148, allocations: 38.56 kB / 492.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 5.109e-06/0.148, allocations: 0 / 492.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002739/0.1508, allocations: 0.8623 MB / 493.7 MB, free: 2.941 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.1509, allocations: 110.8 kB / 493.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.1515, allocations: 337.7 kB / 494.2 MB, free: 2.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.1515, allocations: 29.7 kB / 494.2 MB, free: 2.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.1518, allocations: 310.1 kB / 494.5 MB, free: 2.129 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-05/0.1519, allocations: 82.83 kB / 494.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/0.1519, allocations: 8 kB / 494.6 MB, free: 2.039 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1521, allocations: 326.8 kB / 494.9 MB, free: 1.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.1525, allocations: 79.95 kB / 495 MB, free: 1.633 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.1529, allocations: 225 kB / 495.2 MB, free: 1.352 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1544, allocations: 312.9 kB / 495.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.1544, allocations: 0 / 495.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001498/0.1559, allocations: 403.6 kB / 495.9 MB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.156, allocations: 8 kB / 495.9 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.156, allocations: 4 kB / 495.9 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005326/0.1566, allocations: 84.72 kB / 496 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.1571, allocations: 68.09 kB / 496.1 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.1602, allocations: 1.764 MB / 497.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.1606, allocations: 15.98 kB / 497.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/0.1607, allocations: 20 kB / 497.9 MB, free: 14.52 MB / 346.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 () * Number of clocked 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004001/0.1611, allocations: 193.8 kB / 498.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1612, allocations: 31.62 kB / 498.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.599e-05/0.1613, allocations: 35.31 kB / 498.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.1613, allocations: 7.953 kB / 498.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.1613, allocations: 256 / 498.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.1614, allocations: 11.92 kB / 498.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.1634, allocations: 0.7921 MB / 498.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.1635, allocations: 0 / 498.9 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.164, allocations: 39.98 kB / 499 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.1641, allocations: 28.88 kB / 499 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.1642, allocations: 8 kB / 499 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.1655, allocations: 1.292 MB / 0.4886 GB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.1656, allocations: 4.031 kB / 0.4886 GB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.167, allocations: 0.541 MB / 0.4891 GB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.1672, allocations: 120.7 kB / 0.4892 GB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.684e-05/0.1673, allocations: 19.89 kB / 0.4892 GB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.1676, allocations: 7.984 kB / 0.4893 GB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.1677, allocations: 23.92 kB / 0.4893 GB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.1678, allocations: 7.984 kB / 0.4893 GB, free: 11.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003603/0.1681, allocations: 227.2 kB / 0.4895 GB, free: 10.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1681, allocations: 0 / 0.4895 GB, free: 10.87 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007371/0.1689, allocations: 84 kB / 0.4896 GB, free: 10.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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.0001583/0.1691, allocations: 107.2 kB / 0.4897 GB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1704, allocations: 370.7 kB / 0.49 GB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.1704, allocations: 0 / 0.49 GB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005849/0.171, allocations: 223.4 kB / 0.4902 GB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000887/0.1719, allocations: 94.12 kB / 0.4903 GB, free: 9.969 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.1747, allocations: 1.226 MB / 0.4915 GB, free: 8.703 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.1753, allocations: 0.8506 MB / 0.4924 GB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.1755, allocations: 27.44 kB / 0.4924 GB, free: 7.801 MB / 346.7 MB Notification: Performance of SimCode: time 1.443e-06/0.1755, allocations: 3.938 kB / 0.4924 GB, free: 7.797 MB / 346.7 MB Notification: Performance of Templates: time 0.01518/0.1907, allocations: 6.633 MB / 0.4989 GB, free: 1.156 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)