Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001301/0.001301, allocations: 184.8 kB / 16.38 MB, free: 5.621 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 1.786/1.786, allocations: 194.5 MB / 211.6 MB, free: 7.52 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001784/0.001784, allocations: 124.5 kB / 256.9 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2175/0.2175, allocations: 38.03 MB / 340.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.000434, allocations: 15.22 kB / 403.8 MB, free: 55.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06677/0.06723, allocations: 53.23 MB / 457 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.005967/0.07324, allocations: 6.086 MB / 463.1 MB, free: 4.246 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003628/0.07689, allocations: 2.768 MB / 465.9 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.07729, allocations: 43.69 kB / 465.9 MB, free: 1.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005614/0.07787, allocations: 222.8 kB / 466.1 MB, free: 1.207 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009483/0.07883, allocations: 498.5 kB / 466.6 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.07944, allocations: 255.5 kB / 466.9 MB, free: 480 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009027/0.08036, allocations: 0.6631 MB / 467.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001174/0.08158, allocations: 0.7793 MB / 468.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005603/0.08216, allocations: 366.8 kB / 468.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005726/0.08275, allocations: 366.6 kB / 469 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.757e-05/0.08286, allocations: 40 kB / 469.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005286/0.0834, allocations: 255.6 kB / 469.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003067/0.08372, allocations: 259.4 kB / 469.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.08395, allocations: 185.3 kB / 469.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.08528, allocations: 1.06 MB / 470.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.666e-06/0.08529, allocations: 4 kB / 470.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.116e-06/0.0853, allocations: 0 / 470.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.08532, allocations: 0 / 470.8 MB, free: 12.48 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00207/0.0874, allocations: 1 MB / 471.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.08745, allocations: 12.02 kB / 471.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000703/0.08816, allocations: 127 kB / 472 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.08947, allocations: 0.6544 MB / 472.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.08962, allocations: 83.69 kB / 472.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.08976, allocations: 67.98 kB / 472.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.0915, allocations: 0.9452 MB / 473.7 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.09156, allocations: 11.89 kB / 473.7 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.22e-05/0.09165, allocations: 24 kB / 473.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/0.0918, allocations: 57.28 kB / 473.8 MB, free: 9.355 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.09358, allocations: 0.7819 MB / 474.6 MB, free: 8.57 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006128/0.09972, allocations: 3.867 MB / 478.4 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1008, allocations: 0.5229 MB / 479 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.1009, allocations: 8.047 kB / 479 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.1009, allocations: 34.56 kB / 479 MB, free: 3.867 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.907e-06/0.1009, allocations: 0 / 479 MB, free: 3.867 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.01294/0.1139, allocations: 4.023 MB / 483 MB, free: 15.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.653e-05/0.114, allocations: 111.2 kB / 483.1 MB, free: 15.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007854/0.1148, allocations: 0.5221 MB / 483.7 MB, free: 14.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8e-05/0.1149, allocations: 37.7 kB / 483.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003706/0.1153, allocations: 403 kB / 484.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.1155, allocations: 189.3 kB / 484.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.745e-05/0.1155, allocations: 16 kB / 484.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.1157, allocations: 370.8 kB / 484.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006052/0.1164, allocations: 277.8 kB / 484.9 MB, free: 13.7 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009292/0.1173, allocations: 0.5033 MB / 485.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007386/0.1181, allocations: 376.6 kB / 485.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.34e-06/0.1181, allocations: 0 / 485.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003989/0.1221, allocations: 1.549 MB / 487.3 MB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.1221, allocations: 11.95 kB / 487.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.1222, allocations: 4 kB / 487.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001906/0.1241, allocations: 488.1 kB / 487.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/0.1246, allocations: 103.8 kB / 487.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01433/0.139, allocations: 10.05 MB / 498 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006351/0.1396, allocations: 31.98 kB / 498 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.1397, allocations: 31.95 kB / 498 MB, free: 15.69 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005441/0.1403, allocations: 317.4 kB / 498.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/0.1405, allocations: 63.25 kB / 498.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003781/0.1443, allocations: 1.398 MB / 499.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.1443, allocations: 12 kB / 499.8 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.1443, allocations: 4.109 kB / 499.8 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.1443, allocations: 8.203 kB / 499.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005553/0.1499, allocations: 2.352 MB / 0.4904 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.1499, allocations: 8.031 kB / 0.4904 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.1503, allocations: 55.91 kB / 0.4905 GB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.152, allocations: 459.9 kB / 0.4909 GB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.1521, allocations: 12 kB / 0.4909 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/0.1657, allocations: 9.768 MB / 0.5005 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1658, allocations: 0 / 0.5005 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004498/0.1703, allocations: 1.972 MB / 0.5024 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/0.1707, allocations: 200.3 kB / 0.5026 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.1708, allocations: 12 kB / 0.5026 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.1713, allocations: 19.98 kB / 0.5026 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.1715, allocations: 64.53 kB / 0.5027 GB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-05/0.1716, allocations: 19.98 kB / 0.5027 GB, free: 13.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005625/0.1721, allocations: 366.8 kB / 0.503 GB, free: 13.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.1722, allocations: 0 / 0.503 GB, free: 13.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001286/0.1735, allocations: 252 kB / 0.5033 GB, free: 13.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * 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 (30): * Single equations (assignments): 24 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003085/0.1738, allocations: 139 kB / 0.5034 GB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002706/0.1765, allocations: 1.455 MB / 0.5048 GB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1765, allocations: 0 / 0.5048 GB, free: 11.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.1784, allocations: 1.094 MB / 0.5059 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000961/0.1794, allocations: 154.9 kB / 0.5061 GB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.1829, allocations: 2.023 MB / 0.508 GB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009127/0.1838, allocations: 1.068 MB / 0.5091 GB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004582/0.1843, allocations: 109.7 kB / 0.5092 GB, free: 7.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.1845, allocations: 43.44 kB / 0.5092 GB, free: 7.031 MB / 362.7 MB Notification: Performance of SimCode: time 1.58e-06/0.1845, allocations: 0 / 0.5092 GB, free: 7.031 MB / 362.7 MB Notification: Performance of Templates: time 0.03003/0.2145, allocations: 14.08 MB / 0.523 GB, free: 8.965 MB / 378.7 MB