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.0009343/0.0009343, allocations: 180.5 kB / 15.78 MB, free: 5.977 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.518/1.518, 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.0008414/0.0008414, allocations: 94.28 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.1925/0.1925, allocations: 38.07 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003978, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1243, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006901/0.1312, allocations: 5.405 MB / 484.5 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.1346, allocations: 1.762 MB / 486.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000735/0.1354, allocations: 35.75 kB / 486.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005823/0.136, allocations: 127.1 kB / 486.4 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.1372, allocations: 346 kB / 486.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.1379, allocations: 151.8 kB / 486.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.139, allocations: 0.7473 MB / 487.6 MB, free: 9.434 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004505/0.1395, allocations: 321.2 kB / 487.9 MB, free: 9.121 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003277/0.1398, allocations: 227 kB / 488.2 MB, free: 8.898 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003637/0.1402, allocations: 267 kB / 488.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.261e-05/0.1402, allocations: 28 kB / 488.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.1403, allocations: 24 kB / 488.5 MB, free: 8.586 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.1405, allocations: 127.6 kB / 488.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.1406, allocations: 117.5 kB / 488.7 MB, free: 8.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.141, allocations: 470.7 kB / 489.2 MB, free: 7.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.141, allocations: 0 / 489.2 MB, free: 7.879 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.141, allocations: 0 / 489.2 MB, free: 7.879 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.141, allocations: 0 / 489.2 MB, free: 7.879 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.001271/0.1423, allocations: 0.6995 MB / 489.9 MB, free: 7.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1424, allocations: 11.98 kB / 489.9 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.1425, allocations: 63.38 kB / 489.9 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.1431, allocations: 430.8 kB / 490.4 MB, free: 6.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-05/0.1432, allocations: 62.69 kB / 490.4 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.151e-05/0.1433, allocations: 44 kB / 490.5 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.1441, allocations: 0.497 MB / 491 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.1441, allocations: 11.84 kB / 491 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.1442, allocations: 16 kB / 491 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.1442, allocations: 15.95 kB / 491 MB, free: 5.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006263/0.1448, allocations: 347.7 kB / 491.3 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.1471, allocations: 1.976 MB / 493.3 MB, free: 3.469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004364/0.1476, allocations: 235.5 kB / 493.5 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1478, allocations: 98.66 kB / 493.6 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.1478, allocations: 4 kB / 493.6 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.1478, allocations: 38.56 kB / 493.7 MB, free: 3.055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.432e-06/0.1478, allocations: 0 / 493.7 MB, free: 3.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001656/0.1495, allocations: 0.858 MB / 494.5 MB, free: 2.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.1496, allocations: 106.8 kB / 494.6 MB, free: 2.012 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.1499, allocations: 329.6 kB / 495 MB, free: 1.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1499, allocations: 37.75 kB / 495 MB, free: 1.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.1501, allocations: 263.7 kB / 495.3 MB, free: 1.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/0.1502, allocations: 78.84 kB / 495.3 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.1502, allocations: 8 kB / 495.3 MB, free: 1.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1503, allocations: 346.8 kB / 495.7 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.1505, allocations: 79.95 kB / 495.8 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.1508, allocations: 225 kB / 496 MB, free: 0.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007436/0.1515, allocations: 312.9 kB / 496.3 MB, free: 264 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1516, allocations: 4 kB / 496.3 MB, free: 260 kB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000836/0.1524, allocations: 423.3 kB / 496.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1524, allocations: 8 kB / 496.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1524, allocations: 4 kB / 496.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003213/0.1528, allocations: 80.7 kB / 496.8 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.153, allocations: 71.84 kB / 496.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.1548, allocations: 1.745 MB / 498.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.155, allocations: 15.94 kB / 498.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.1551, allocations: 20 kB / 498.6 MB, free: 13.75 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.0002174/0.1553, allocations: 201.6 kB / 498.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.917e-05/0.1554, allocations: 35.69 kB / 498.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.419e-05/0.1554, allocations: 47.3 kB / 498.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1554, allocations: 3.953 kB / 498.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1554, allocations: 4.062 kB / 498.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1555, allocations: 4 kB / 498.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.1566, allocations: 0.7845 MB / 499.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.1566, allocations: 4 kB / 499.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.1568, allocations: 51.91 kB / 499.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.392e-05/0.1569, allocations: 20.89 kB / 499.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.157, allocations: 7.984 kB / 499.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008443/0.1578, allocations: 1.284 MB / 0.4893 GB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1578, allocations: 0 / 0.4893 GB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000736/0.1586, allocations: 0.5086 MB / 0.4898 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.956e-05/0.1587, allocations: 120.7 kB / 0.49 GB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.1587, allocations: 4 kB / 0.49 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.1589, allocations: 11.98 kB / 0.49 GB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.159, allocations: 23.94 kB / 0.49 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.159, allocations: 7.984 kB / 0.49 GB, free: 10.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002137/0.1592, allocations: 227.2 kB / 0.4902 GB, free: 10.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1592, allocations: 0 / 0.4902 GB, free: 10.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004307/0.1597, allocations: 88 kB / 0.4903 GB, free: 10.07 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.0001131/0.1598, allocations: 107.2 kB / 0.4904 GB, free: 9.949 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007342/0.1605, allocations: 371.1 kB / 0.4908 GB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1606, allocations: 384 / 0.4908 GB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.1609, allocations: 222.6 kB / 0.491 GB, free: 9.344 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006395/0.1616, allocations: 101.5 kB / 0.4911 GB, free: 9.242 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.1632, allocations: 1.218 MB / 0.4923 GB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.1637, allocations: 0.8467 MB / 0.4931 GB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.219e-05/0.1637, allocations: 27.44 kB / 0.4931 GB, free: 7.086 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1637, allocations: 0 / 0.4931 GB, free: 7.086 MB / 346.7 MB Notification: Performance of Templates: time 0.008653/0.1724, allocations: 6.856 MB / 0.4998 GB, free: 228 kB / 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)