Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002567/0.002571, allocations: 359.2 kB / 17.21 MB, free: 4.93 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.708/3.708, allocations: 388.9 MB / 406.8 MB, free: 11.9 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.004099/0.004099, allocations: 249.5 kB / 452.3 MB, free: 14.5 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.788/0.788, allocations: 76.01 MB / 0.56 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.0004397, allocations: 12 kB / 0.6222 GB, free: 114.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09315, allocations: 53.23 MB / 0.6742 GB, free: 60.96 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.009068/0.1023, allocations: 7.195 MB / 0.6813 GB, free: 53.74 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006455/0.1088, allocations: 3.107 MB / 0.6843 GB, free: 50.62 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.11, allocations: 51.69 kB / 0.6843 GB, free: 50.57 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008664/0.1109, allocations: 238.4 kB / 0.6846 GB, free: 50.34 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002203/0.1131, allocations: 0.6256 MB / 0.6852 GB, free: 49.71 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.1145, allocations: 363.3 kB / 0.6855 GB, free: 49.36 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002275/0.1168, allocations: 1.539 MB / 0.687 GB, free: 47.81 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.1184, allocations: 0.9521 MB / 0.688 GB, free: 46.81 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007039/0.1191, allocations: 438 kB / 0.6884 GB, free: 46.38 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009369/0.1201, allocations: 0.576 MB / 0.6889 GB, free: 45.8 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1202, allocations: 44 kB / 0.689 GB, free: 45.76 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006487/0.1209, allocations: 275.5 kB / 0.6892 GB, free: 45.49 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003501/0.1212, allocations: 323 kB / 0.6896 GB, free: 45.17 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.1215, allocations: 213.1 kB / 0.6898 GB, free: 44.96 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.123, allocations: 1.259 MB / 0.691 GB, free: 43.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.123, allocations: 0 / 0.691 GB, free: 43.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.123, allocations: 0 / 0.691 GB, free: 43.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.123, allocations: 0 / 0.691 GB, free: 43.7 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003316/0.1263, allocations: 1.203 MB / 0.6922 GB, free: 42.44 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1264, allocations: 12.03 kB / 0.6922 GB, free: 42.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009668/0.1274, allocations: 162.5 kB / 0.6923 GB, free: 42.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.1292, allocations: 0.746 MB / 0.6931 GB, free: 41.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.1293, allocations: 62 kB / 0.6931 GB, free: 41.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002593/0.1295, allocations: 87.91 kB / 0.6932 GB, free: 41.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.1319, allocations: 1.124 MB / 0.6943 GB, free: 40.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.132, allocations: 3.938 kB / 0.6943 GB, free: 40.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.1321, allocations: 39.97 kB / 0.6943 GB, free: 40.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.1323, allocations: 61.98 kB / 0.6944 GB, free: 40.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002306/0.1346, allocations: 0.929 MB / 0.6953 GB, free: 39.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007901/0.1425, allocations: 4.414 MB / 0.6996 GB, free: 34.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.1441, allocations: 0.6946 MB / 0.7003 GB, free: 33.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008205/0.1449, allocations: 348.5 kB / 0.7006 GB, free: 33.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.336e-05/0.145, allocations: 12.5 kB / 0.7006 GB, free: 33.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.1451, allocations: 43.12 kB / 0.7007 GB, free: 33.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.887e-06/0.1451, allocations: 4 kB / 0.7007 GB, free: 33.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.006337/0.1514, allocations: 2.61 MB / 0.7032 GB, free: 30.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.1515, allocations: 137.1 kB / 0.7034 GB, free: 30.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009535/0.1525, allocations: 0.6487 MB / 0.704 GB, free: 29.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.1526, allocations: 37.7 kB / 0.704 GB, free: 29.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/0.1529, allocations: 470.9 kB / 0.7045 GB, free: 29.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.1531, allocations: 216.8 kB / 0.7047 GB, free: 29.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.1531, allocations: 16 kB / 0.7047 GB, free: 29.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1533, allocations: 386.8 kB / 0.7051 GB, free: 28.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007261/0.154, allocations: 273.8 kB / 0.7053 GB, free: 28.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008315/0.1549, allocations: 0.5034 MB / 0.7058 GB, free: 27.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004217/0.1591, allocations: 0.814 MB / 0.7066 GB, free: 26.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.1591, allocations: 4 kB / 0.7066 GB, free: 26.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004686/0.1638, allocations: 1.383 MB / 0.708 GB, free: 25.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.164, allocations: 302.1 kB / 0.7083 GB, free: 25.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.1641, allocations: 8 kB / 0.7083 GB, free: 25.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002714/0.1668, allocations: 466 kB / 0.7087 GB, free: 24.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009519/0.1677, allocations: 147.7 kB / 0.7089 GB, free: 24.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.1798, allocations: 6.127 MB / 0.7148 GB, free: 18.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009143/0.1807, allocations: 47.92 kB / 0.7149 GB, free: 18.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.1808, allocations: 28 kB / 0.7149 GB, free: 18.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.1808, allocations: 4 kB / 0.7149 GB, free: 18.07 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003834/0.1847, allocations: 1.191 MB / 0.7161 GB, free: 16.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.1848, allocations: 8 kB / 0.7161 GB, free: 16.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.1872, allocations: 429.5 kB / 0.7165 GB, free: 16.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009391/0.1882, allocations: 143.8 kB / 0.7166 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.1987, allocations: 5.908 MB / 0.7224 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008548/0.1996, allocations: 31.98 kB / 0.7224 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/0.1997, allocations: 35.98 kB / 0.7225 GB, free: 10.03 MB / 442.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (69): * Single equations (assignments): 67 * 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: 2 * 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: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006279/0.2003, allocations: 400.8 kB / 0.7228 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.2005, allocations: 86.91 kB / 0.7229 GB, free: 9.543 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/0.2024, allocations: 0.7301 MB / 0.7236 GB, free: 8.797 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.2024, allocations: 3.984 kB / 0.7236 GB, free: 8.793 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2024, allocations: 4 kB / 0.7236 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003562/0.2028, allocations: 212 kB / 0.7239 GB, free: 8.562 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.203, allocations: 12 kB / 0.7239 GB, free: 8.551 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007067/0.2037, allocations: 31.97 kB / 0.7239 GB, free: 8.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.2038, allocations: 48.44 kB / 0.7239 GB, free: 8.473 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002715/0.2065, allocations: 1.006 MB / 0.7249 GB, free: 7.453 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002493/0.209, allocations: 1.36 MB / 0.7262 GB, free: 6.074 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006996/0.2098, allocations: 312.3 kB / 0.7265 GB, free: 5.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007383/0.2105, allocations: 459 kB / 0.727 GB, free: 5.328 MB / 442.7 MB Notification: Performance of Backend: time 7.72e-07/0.2105, allocations: 0 / 0.727 GB, free: 5.328 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004975/0.2155, allocations: 1.793 MB / 0.7287 GB, free: 3.477 MB / 442.7 MB Notification: Performance of SimCode: time 0.00464/0.2202, allocations: 2.864 MB / 0.7315 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of Templates: time 0.3278/0.5481, allocations: 17.49 MB / 0.7486 GB, free: 124.5 MB / 442.7 MB