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.001561/0.001561, allocations: 184.2 kB / 15.77 MB, free: 6.375 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.132/2.132, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001106/0.001105, allocations: 102.8 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.2601/0.2601, allocations: 38.06 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004513/0.0004515, allocations: 12 kB / 422.7 MB, free: 26.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 56.32 MB / 479 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008465/0.1223, allocations: 4.938 MB / 484 MB, free: 13.11 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004725/0.1271, allocations: 1.997 MB / 486 MB, free: 11.11 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004511/0.1276, allocations: 23.88 kB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005643/0.1282, allocations: 127.2 kB / 486.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.1295, allocations: 342.8 kB / 486.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007759/0.1303, allocations: 187.6 kB / 486.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009183/0.1312, allocations: 419.1 kB / 487 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005816/0.1318, allocations: 321.1 kB / 487.3 MB, free: 9.711 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005449/0.1324, allocations: 235.1 kB / 487.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.1329, allocations: 207.1 kB / 487.8 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.545e-05/0.1329, allocations: 24 kB / 487.8 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.1332, allocations: 55.97 kB / 487.9 MB, free: 9.199 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.1334, allocations: 107.6 kB / 488 MB, free: 9.094 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.1336, allocations: 133.4 kB / 488.1 MB, free: 8.957 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007606/0.1343, allocations: 0.4948 MB / 488.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1343, allocations: 0 / 488.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1344, allocations: 0 / 488.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1344, allocations: 0 / 488.6 MB, free: 8.461 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.001993/0.1364, allocations: 0.7532 MB / 489.3 MB, free: 7.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1364, allocations: 8.031 kB / 489.4 MB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.1366, allocations: 59.33 kB / 489.4 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.1377, allocations: 449.8 kB / 489.8 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.1377, allocations: 32.98 kB / 489.9 MB, free: 7.078 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1378, allocations: 36 kB / 489.9 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.1389, allocations: 449.1 kB / 490.4 MB, free: 6.559 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.1389, allocations: 3.938 kB / 490.4 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.139, allocations: 19.95 kB / 490.4 MB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.139, allocations: 8 kB / 490.4 MB, free: 6.527 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007583/0.1398, allocations: 278.3 kB / 490.7 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.143, allocations: 1.859 MB / 492.5 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/0.1437, allocations: 248.2 kB / 492.8 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.1438, allocations: 8.25 kB / 492.8 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004027/0.1442, allocations: 170.2 kB / 492.9 MB, free: 3.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.525e-06/0.1442, allocations: 7.938 kB / 492.9 MB, free: 3.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.002479/0.1467, allocations: 0.9064 MB / 493.8 MB, free: 2.848 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.849e-05/0.1468, allocations: 136.5 kB / 494 MB, free: 2.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006648/0.1475, allocations: 394 kB / 494.4 MB, free: 2.297 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.1475, allocations: 29.95 kB / 494.4 MB, free: 2.262 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.1478, allocations: 314 kB / 494.7 MB, free: 1.949 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.1479, allocations: 94.73 kB / 494.8 MB, free: 1.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.148, allocations: 12 kB / 494.8 MB, free: 1.844 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1481, allocations: 330.8 kB / 495.1 MB, free: 1.512 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1484, allocations: 79.95 kB / 495.2 MB, free: 1.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.1488, allocations: 208.2 kB / 495.4 MB, free: 1.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.1491, allocations: 119.9 kB / 495.5 MB, free: 1.055 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1491, allocations: 4 kB / 495.5 MB, free: 1.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001286/0.1504, allocations: 398.1 kB / 495.9 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.1505, allocations: 11.98 kB / 495.9 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1505, allocations: 4 kB / 495.9 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006544/0.1512, allocations: 88.78 kB / 496 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004298/0.1516, allocations: 63.91 kB / 496.1 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003369/0.155, allocations: 1.85 MB / 497.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1555, allocations: 19.98 kB / 498 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.1555, allocations: 20 kB / 498 MB, free: 14.46 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.0003788/0.1559, allocations: 209.1 kB / 498.2 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.5e-05/0.156, allocations: 43.44 kB / 498.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009152/0.1569, allocations: 286 kB / 498.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.157, allocations: 4 kB / 498.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.157, allocations: 3.953 kB / 498.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.157, allocations: 0 / 498.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.1586, allocations: 0.7805 MB / 499.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1587, allocations: 0 / 499.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.1591, allocations: 43.97 kB / 499.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003395/0.1595, allocations: 44.81 kB / 499.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.1595, allocations: 8 kB / 499.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.1614, allocations: 1.449 MB / 0.4891 GB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1614, allocations: 64 / 0.4891 GB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1626, allocations: 0.5243 MB / 0.4896 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.1629, allocations: 128.7 kB / 0.4897 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.163, allocations: 15.95 kB / 0.4897 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000364/0.1633, allocations: 19.92 kB / 0.4898 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/0.1635, allocations: 19.97 kB / 0.4898 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/0.1635, allocations: 11.94 kB / 0.4898 GB, free: 10.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004893/0.164, allocations: 275.1 kB / 0.4901 GB, free: 10.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.164, allocations: 4 kB / 0.4901 GB, free: 10.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007407/0.1648, allocations: 108 kB / 0.4902 GB, free: 10.24 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.001201/0.166, allocations: 403.5 kB / 0.4905 GB, free: 9.891 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.1672, allocations: 391.3 kB / 0.4909 GB, free: 9.496 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1673, allocations: 0 / 0.4909 GB, free: 9.496 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005988/0.1679, allocations: 242.5 kB / 0.4911 GB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009403/0.1688, allocations: 125.4 kB / 0.4913 GB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.1717, allocations: 1.387 MB / 0.4926 GB, free: 7.699 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/0.1723, allocations: 0.8736 MB / 0.4935 GB, free: 6.801 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.1725, allocations: 39.42 kB / 0.4935 GB, free: 6.762 MB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.1725, allocations: 0 / 0.4935 GB, free: 6.762 MB / 346.7 MB Notification: Performance of Templates: time 0.01739/0.1899, allocations: 7.917 MB / 0.5012 GB, free: 14.83 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)