Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002621/0.002625, allocations: 362.6 kB / 17.21 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.845/3.845, allocations: 388.9 MB / 406.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.005172/0.005172, allocations: 243.7 kB / 452.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.8066/0.8066, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004346, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 53.23 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006616/0.1155, allocations: 5.084 MB / 0.6792 GB, free: 55.71 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.1195, allocations: 1.965 MB / 0.6811 GB, free: 53.74 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005426/0.1201, allocations: 27.81 kB / 0.6811 GB, free: 53.71 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000506/0.1206, allocations: 127.1 kB / 0.6813 GB, free: 53.59 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.1218, allocations: 342 kB / 0.6816 GB, free: 53.25 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.1223, allocations: 159.7 kB / 0.6817 GB, free: 53.09 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009967/0.1234, allocations: 0.7044 MB / 0.6824 GB, free: 52.39 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004954/0.1239, allocations: 305.4 kB / 0.6827 GB, free: 52.08 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004476/0.1244, allocations: 238.9 kB / 0.6829 GB, free: 51.84 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.1248, allocations: 259 kB / 0.6832 GB, free: 51.59 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.349e-05/0.1249, allocations: 28 kB / 0.6832 GB, free: 51.56 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.1251, allocations: 59.92 kB / 0.6833 GB, free: 51.5 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.1253, allocations: 127.5 kB / 0.6834 GB, free: 51.38 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.1254, allocations: 117.5 kB / 0.6835 GB, free: 51.26 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006044/0.1261, allocations: 0.4909 MB / 0.684 GB, free: 50.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1261, allocations: 0 / 0.684 GB, free: 50.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1261, allocations: 0 / 0.684 GB, free: 50.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1261, allocations: 0 / 0.684 GB, free: 50.77 MB / 442.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.001813/0.1279, allocations: 0.7743 MB / 0.6847 GB, free: 49.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.128, allocations: 12.02 kB / 0.6847 GB, free: 49.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1281, allocations: 59.34 kB / 0.6848 GB, free: 49.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009121/0.129, allocations: 441.9 kB / 0.6852 GB, free: 49.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.1291, allocations: 25 kB / 0.6852 GB, free: 49.37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.1292, allocations: 47.91 kB / 0.6853 GB, free: 49.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008702/0.1301, allocations: 449.1 kB / 0.6857 GB, free: 48.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.1301, allocations: 11.88 kB / 0.6857 GB, free: 48.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.156e-05/0.1302, allocations: 16 kB / 0.6857 GB, free: 48.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.1302, allocations: 12 kB / 0.6858 GB, free: 48.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000646/0.1309, allocations: 274.3 kB / 0.686 GB, free: 48.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.1335, allocations: 1.867 MB / 0.6878 GB, free: 46.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006689/0.1342, allocations: 252.2 kB / 0.6881 GB, free: 46.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.1344, allocations: 90.92 kB / 0.6882 GB, free: 46.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.425e-05/0.1345, allocations: 192 / 0.6882 GB, free: 46.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003281/0.1348, allocations: 178.3 kB / 0.6883 GB, free: 45.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.1348, allocations: 0 / 0.6883 GB, free: 45.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=27): time 0.002662/0.1375, allocations: 1.147 MB / 0.6895 GB, free: 44.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.1376, allocations: 132.5 kB / 0.6896 GB, free: 44.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005316/0.1381, allocations: 389.7 kB / 0.69 GB, free: 44.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.1381, allocations: 29.7 kB / 0.69 GB, free: 44.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.1383, allocations: 259.6 kB / 0.6902 GB, free: 43.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.1384, allocations: 98.64 kB / 0.6903 GB, free: 43.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/0.1385, allocations: 4 kB / 0.6903 GB, free: 43.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1386, allocations: 362.8 kB / 0.6907 GB, free: 43.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.1389, allocations: 88.7 kB / 0.6908 GB, free: 43.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.1392, allocations: 213.9 kB / 0.691 GB, free: 43.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.1395, allocations: 149.6 kB / 0.6911 GB, free: 42.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1395, allocations: 0 / 0.6911 GB, free: 42.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001258/0.1408, allocations: 467 kB / 0.6916 GB, free: 42.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.1409, allocations: 33.7 kB / 0.6916 GB, free: 42.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1409, allocations: 4 kB / 0.6916 GB, free: 42.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/0.1415, allocations: 101.3 kB / 0.6917 GB, free: 42.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.142, allocations: 63.91 kB / 0.6918 GB, free: 42.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/0.1448, allocations: 1.815 MB / 0.6935 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.1452, allocations: 23.95 kB / 0.6935 GB, free: 40.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/0.1453, allocations: 19.98 kB / 0.6936 GB, free: 40.28 MB / 442.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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.0002904/0.1456, allocations: 193.7 kB / 0.6938 GB, free: 40.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/0.1457, allocations: 47.5 kB / 0.6938 GB, free: 40.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008513/0.1465, allocations: 309.8 kB / 0.6941 GB, free: 39.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1466, allocations: 0 / 0.6941 GB, free: 39.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1466, allocations: 0 / 0.6941 GB, free: 39.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.1467, allocations: 132.6 kB / 0.6942 GB, free: 39.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/0.1468, allocations: 11.98 kB / 0.6942 GB, free: 39.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.1472, allocations: 19.92 kB / 0.6942 GB, free: 39.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/0.1473, allocations: 27.95 kB / 0.6943 GB, free: 39.5 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001441/0.1487, allocations: 0.5444 MB / 0.6948 GB, free: 38.95 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008998/0.1496, allocations: 0.6765 MB / 0.6955 GB, free: 38.25 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002285/0.1499, allocations: 100.5 kB / 0.6956 GB, free: 38.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003872/0.1503, allocations: 271.2 kB / 0.6958 GB, free: 37.9 MB / 442.7 MB Notification: Performance of Backend: time 5.31e-07/0.1503, allocations: 0 / 0.6958 GB, free: 37.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002644/0.1529, allocations: 0.7304 MB / 0.6965 GB, free: 37.19 MB / 442.7 MB Notification: Performance of SimCode: time 0.002768/0.1557, allocations: 1.846 MB / 0.6983 GB, free: 35.29 MB / 442.7 MB Notification: Performance of Templates: time 0.01578/0.1716, allocations: 5.884 MB / 0.7041 GB, free: 29.41 MB / 442.7 MB