Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 115 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.4 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002181/0.002181, allocations: 61.36 kB / 398.3 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1521, allocations: 58.06 MB / 456.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01187/0.1641, allocations: 8.114 MB / 464.4 MB, free: 240 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006393/0.1706, allocations: 3.179 MB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.1717, allocations: 47.69 kB / 467.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.1732, allocations: 334.2 kB / 468 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002197/0.1754, allocations: 0.72 MB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007672/0.1762, allocations: 271.7 kB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002136/0.1783, allocations: 1.578 MB / 470.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0022/0.1805, allocations: 1.445 MB / 472 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001271/0.1818, allocations: 0.6501 MB / 472.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.1831, allocations: 0.7789 MB / 473.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003774/0.1835, allocations: 140 kB / 473.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.1849, allocations: 0.7099 MB / 474.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006487/0.1856, allocations: 0.5066 MB / 474.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.1866, allocations: 0.6574 MB / 475.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002298/0.1889, allocations: 2.065 MB / 477.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.189, allocations: 0 / 477.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.189, allocations: 4 kB / 477.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.306e-05/0.1891, allocations: 3.938 kB / 477.5 MB, free: 3.113 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004423/0.1935, allocations: 1.551 MB / 479.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.1936, allocations: 15.89 kB / 479.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009377/0.1945, allocations: 167.4 kB / 479.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.1961, allocations: 0.8073 MB / 480.1 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002185/0.1964, allocations: 208.7 kB / 480.3 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.1966, allocations: 104 kB / 480.4 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/0.1993, allocations: 1.472 MB / 481.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/0.1994, allocations: 11.84 kB / 481.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.1995, allocations: 36 kB / 481.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.1996, allocations: 81.97 kB / 482 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/0.2018, allocations: 1.261 MB / 483.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007934/0.2098, allocations: 5.231 MB / 488.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.2115, allocations: 1.024 MB / 489.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008119/0.2124, allocations: 0.4894 MB / 490 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.787e-05/0.2125, allocations: 16.55 kB / 490 MB, free: 6.211 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.2125, allocations: 35.12 kB / 490 MB, free: 6.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 3.286e-06/0.2125, allocations: 8 kB / 490 MB, free: 6.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006677/0.2192, allocations: 3.059 MB / 493.1 MB, free: 3.027 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.2193, allocations: 119.3 kB / 493.2 MB, free: 2.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008912/0.2202, allocations: 0.6797 MB / 493.9 MB, free: 2.199 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.2203, allocations: 45.64 kB / 493.9 MB, free: 2.148 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003169/0.2206, allocations: 486.8 kB / 494.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.2208, allocations: 268.2 kB / 494.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.2211, allocations: 190.4 kB / 494.8 MB, free: 1.207 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.2213, allocations: 390.7 kB / 495.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007422/0.2221, allocations: 441.8 kB / 495.7 MB, free: 392 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009114/0.223, allocations: 0.713 MB / 496.4 MB, free: 15.54 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005811/0.2288, allocations: 2.587 MB / 499 MB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.2288, allocations: 0 / 499 MB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002482/0.2313, allocations: 1.308 MB / 0.4885 GB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.2314, allocations: 8.75 kB / 0.4886 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.2314, allocations: 15.94 kB / 0.4886 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.2317, allocations: 85.66 kB / 0.4886 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008866/0.2326, allocations: 223.7 kB / 0.4889 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2338, allocations: 1.446 MB / 0.4903 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/0.2346, allocations: 83.84 kB / 0.4904 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-05/0.2347, allocations: 39.98 kB / 0.4904 GB, free: 9.453 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006541/0.2354, allocations: 421.2 kB / 0.4908 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.2356, allocations: 75.06 kB / 0.4909 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.2375, allocations: 0.9863 MB / 0.4918 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/0.2375, allocations: 16 kB / 0.4918 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2375, allocations: 3.938 kB / 0.4918 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.2376, allocations: 3.984 kB / 0.4919 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003983/0.2415, allocations: 2.285 MB / 0.4941 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2416, allocations: 0 / 0.4941 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007524/0.2423, allocations: 147.8 kB / 0.4942 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.2424, allocations: 20.86 kB / 0.4942 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.2425, allocations: 23.98 kB / 0.4943 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.2437, allocations: 1.371 MB / 0.4956 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.2437, allocations: 4.188 kB / 0.4956 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.2461, allocations: 1.649 MB / 0.4972 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.2466, allocations: 252.1 kB / 0.4975 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.2467, allocations: 20.06 kB / 0.4975 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.2472, allocations: 51.94 kB / 0.4975 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.2474, allocations: 56.48 kB / 0.4976 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.2475, allocations: 19.98 kB / 0.4976 GB, free: 1.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006697/0.2481, allocations: 483 kB / 0.4981 GB, free: 1.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.2481, allocations: 0 / 0.4981 GB, free: 1.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00107/0.2492, allocations: 267.9 kB / 0.4983 GB, free: 1.055 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003973/0.2496, allocations: 147.1 kB / 0.4985 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.2526, allocations: 1.545 MB / 0.5 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2527, allocations: 1.875 kB / 0.5 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.2537, allocations: 0.6112 MB / 0.5006 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.2549, allocations: 232.4 kB / 0.5008 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004902/0.2599, allocations: 2.936 MB / 0.5037 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.2609, allocations: 1.161 MB / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007885/0.2617, allocations: 247 kB / 0.505 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.2619, allocations: 67.42 kB / 0.5051 GB, free: 10 MB / 398.1 MB Notification: Performance of SimCode: time 1.272e-06/0.2619, allocations: 0 / 0.5051 GB, free: 10 MB / 398.1 MB Notification: Performance of Templates: time 0.2269/0.4888, allocations: 12.08 MB / 0.5169 GB, free: 69.93 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)