Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002256/0.002256, allocations: 189 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.127/2.127, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001565/0.001565, allocations: 90.81 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2613/0.2613, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004561/0.0004562, allocations: 15.98 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1122, allocations: 56.32 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01343/0.1257, allocations: 5.391 MB / 484.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00758/0.1333, allocations: 2.102 MB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008654/0.1343, allocations: 31.75 kB / 486.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1353, allocations: 147.1 kB / 486.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002494/0.1379, allocations: 374.8 kB / 487.1 MB, free: 9.961 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.1394, allocations: 199.6 kB / 487.3 MB, free: 9.766 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001891/0.1413, allocations: 491 kB / 487.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.1424, allocations: 366.2 kB / 488.1 MB, free: 8.926 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00099/0.1434, allocations: 274.9 kB / 488.4 MB, free: 8.656 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007472/0.1442, allocations: 235 kB / 488.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.1443, allocations: 28 kB / 488.6 MB, free: 8.398 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003782/0.1447, allocations: 55.92 kB / 488.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003155/0.1451, allocations: 139.6 kB / 488.8 MB, free: 8.207 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002755/0.1454, allocations: 133.4 kB / 488.9 MB, free: 8.07 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.1467, allocations: 0.5649 MB / 489.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1468, allocations: 0 / 489.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.648e-06/0.1469, allocations: 0 / 489.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.1469, allocations: 4 kB / 489.5 MB, free: 7.5 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003608/0.1505, allocations: 0.7967 MB / 490.3 MB, free: 6.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.6e-05/0.1506, allocations: 15.92 kB / 490.3 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.151, allocations: 63.25 kB / 490.4 MB, free: 6.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.1531, allocations: 489.7 kB / 490.9 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.1533, allocations: 33 kB / 490.9 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002816/0.1536, allocations: 51.94 kB / 490.9 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/0.1558, allocations: 0.5095 MB / 491.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.854e-05/0.1559, allocations: 4 kB / 491.5 MB, free: 5.414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.156, allocations: 19.94 kB / 491.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/0.1562, allocations: 17 kB / 491.5 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.1577, allocations: 339.7 kB / 491.8 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.1635, allocations: 2.07 MB / 493.9 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009209/0.1645, allocations: 231.6 kB / 494.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-05/0.1646, allocations: 12.69 kB / 494.1 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005283/0.1651, allocations: 162.1 kB / 494.3 MB, free: 2.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.486e-06/0.1651, allocations: 0 / 494.3 MB, free: 2.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.003275/0.1684, allocations: 0.926 MB / 495.2 MB, free: 1.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/0.1685, allocations: 136.5 kB / 495.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007552/0.1693, allocations: 425.8 kB / 495.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.1694, allocations: 29.7 kB / 495.8 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/0.1697, allocations: 334.1 kB / 496.1 MB, free: 488 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.1698, allocations: 90.7 kB / 496.2 MB, free: 396 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.1698, allocations: 8 kB / 496.2 MB, free: 388 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.17, allocations: 330.8 kB / 496.5 MB, free: 48 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.1703, allocations: 84.91 kB / 496.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.1707, allocations: 225.4 kB / 496.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.1711, allocations: 115.9 kB / 497 MB, free: 15.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1711, allocations: 0 / 497 MB, free: 15.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001376/0.1725, allocations: 409.7 kB / 497.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.1725, allocations: 8.562 kB / 497.4 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1725, allocations: 11.94 kB / 497.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006807/0.1732, allocations: 96.77 kB / 497.5 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/0.1737, allocations: 71.84 kB / 497.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003092/0.1768, allocations: 1.718 MB / 499.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000488/0.1774, allocations: 16 kB / 499.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.1774, allocations: 19.98 kB / 499.3 MB, free: 13.09 MB / 346.7 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 (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.0003918/0.1778, allocations: 221 kB / 499.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.637e-05/0.1779, allocations: 43.44 kB / 499.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009326/0.1789, allocations: 282.1 kB / 499.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.1789, allocations: 4 kB / 499.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1789, allocations: 4 kB / 499.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1789, allocations: 3.953 kB / 499.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.1808, allocations: 0.7687 MB / 0.4889 GB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.1808, allocations: 0 / 0.4889 GB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005167/0.1813, allocations: 47.92 kB / 0.4889 GB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003557/0.1817, allocations: 56.78 kB / 0.489 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.1818, allocations: 4 kB / 0.489 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.1837, allocations: 1.452 MB / 0.4904 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.1837, allocations: 3.938 kB / 0.4904 GB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.1849, allocations: 0.4967 MB / 0.4909 GB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.1851, allocations: 136.6 kB / 0.491 GB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.6e-05/0.1852, allocations: 11.95 kB / 0.491 GB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.1856, allocations: 15.98 kB / 0.491 GB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.995e-05/0.1857, allocations: 15.97 kB / 0.4911 GB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.1858, allocations: 12 kB / 0.4911 GB, free: 9.254 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005342/0.1863, allocations: 295.1 kB / 0.4914 GB, free: 8.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1863, allocations: 0 / 0.4914 GB, free: 8.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007475/0.1871, allocations: 120 kB / 0.4915 GB, free: 8.848 MB / 346.7 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 (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.001163/0.1883, allocations: 407.4 kB / 0.4919 GB, free: 8.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.1895, allocations: 382.8 kB / 0.4922 GB, free: 8.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1895, allocations: 0 / 0.4922 GB, free: 8.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000583/0.1901, allocations: 242.4 kB / 0.4925 GB, free: 7.859 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.1911, allocations: 118.6 kB / 0.4926 GB, free: 7.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.1945, allocations: 1.512 MB / 0.494 GB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.1952, allocations: 0.8857 MB / 0.4949 GB, free: 5.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.1954, allocations: 39.42 kB / 0.4949 GB, free: 5.246 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1954, allocations: 0 / 0.4949 GB, free: 5.246 MB / 346.7 MB Notification: Performance of Templates: time 0.01902/0.2144, allocations: 8.524 MB / 0.5033 GB, free: 12.7 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)