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.001092/0.001092, allocations: 88.25 kB / 16.65 MB, free: 6.59 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.001263/0.001263, allocations: 185.7 kB / 17.57 MB, free: 6.199 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.467/1.467, allocations: 223.2 MB / 241.6 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1813/0.1813, allocations: 38.08 MB / 330.8 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003067, allocations: 8.688 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1239, allocations: 59.16 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008406/0.1323, allocations: 7.665 MB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005072/0.1374, allocations: 3.171 MB / 470.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006364/0.1381, allocations: 43.69 kB / 470.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006403/0.1387, allocations: 206.8 kB / 471 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001609/0.1404, allocations: 0.7043 MB / 471.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.141, allocations: 279.7 kB / 471.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002084/0.1431, allocations: 2.108 MB / 474 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001524/0.1446, allocations: 1.25 MB / 475.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009895/0.1456, allocations: 0.4901 MB / 475.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.1468, allocations: 0.7007 MB / 476.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.1469, allocations: 60 kB / 476.5 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.1486, allocations: 0.6123 MB / 477.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006336/0.1493, allocations: 418.8 kB / 477.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008382/0.1501, allocations: 0.581 MB / 478.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003341/0.1535, allocations: 1.97 MB / 480.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1535, allocations: 0 / 480.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.1535, allocations: 0 / 480.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.513e-05/0.1536, allocations: 4 kB / 480.1 MB, free: 2.699 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.004457/0.158, allocations: 1.337 MB / 481.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.842e-05/0.1581, allocations: 11.97 kB / 481.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.1593, allocations: 171.5 kB / 481.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.1618, allocations: 0.8111 MB / 482.4 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/0.1621, allocations: 204.7 kB / 482.6 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003115/0.1625, allocations: 100 kB / 482.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003766/0.1662, allocations: 1.473 MB / 484.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.525e-05/0.1663, allocations: 4 kB / 484.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.1665, allocations: 47.98 kB / 484.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/0.1667, allocations: 77.97 kB / 484.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003628/0.1703, allocations: 1.272 MB / 485.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01417/0.1845, allocations: 5.235 MB / 490.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003088/0.1877, allocations: 1.037 MB / 491.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.1893, allocations: 0.5089 MB / 492.4 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.054e-05/0.1894, allocations: 13.19 kB / 492.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.815e-05/0.1895, allocations: 39.12 kB / 492.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 4.95e-06/0.1895, allocations: 0 / 492.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.01128/0.2008, allocations: 3.133 MB / 495.6 MB, free: 2.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/0.2009, allocations: 111.4 kB / 495.7 MB, free: 2.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.2025, allocations: 0.6876 MB / 496.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/0.2026, allocations: 41.7 kB / 496.4 MB, free: 1.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005277/0.2032, allocations: 478.7 kB / 496.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003946/0.2036, allocations: 264.2 kB / 497.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.2038, allocations: 93.66 kB / 497.2 MB, free: 1.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002712/0.2041, allocations: 390.7 kB / 497.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.2055, allocations: 445.8 kB / 498 MB, free: 184 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.2072, allocations: 0.7207 MB / 498.8 MB, free: 15.34 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.01105/0.2183, allocations: 2.602 MB / 0.4896 GB, free: 12.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.2183, allocations: 8 kB / 0.4896 GB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004397/0.2227, allocations: 1.316 MB / 0.4909 GB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.2228, allocations: 8 kB / 0.4909 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.415e-05/0.2228, allocations: 11.94 kB / 0.4909 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004804/0.2233, allocations: 85.67 kB / 0.491 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.2252, allocations: 227.9 kB / 0.4912 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.2273, allocations: 1.339 MB / 0.4925 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.2289, allocations: 91.89 kB / 0.4926 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.229, allocations: 36 kB / 0.4927 GB, free: 9.328 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 sytem: 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.001419/0.2305, allocations: 429.2 kB / 0.4931 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004655/0.2309, allocations: 82.97 kB / 0.4931 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.2345, allocations: 0.9902 MB / 0.4941 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-05/0.2345, allocations: 12 kB / 0.4941 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.2345, allocations: 8 kB / 0.4941 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.2346, allocations: 3.984 kB / 0.4941 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007738/0.2423, allocations: 2.285 MB / 0.4964 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.2423, allocations: 0 / 0.4964 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/0.2438, allocations: 155.8 kB / 0.4965 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001644/0.244, allocations: 24.84 kB / 0.4965 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-05/0.2441, allocations: 12 kB / 0.4966 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.2458, allocations: 1.288 MB / 0.4978 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.2458, allocations: 3.938 kB / 0.4978 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004666/0.2505, allocations: 1.665 MB / 0.4994 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000729/0.2512, allocations: 252 kB / 0.4997 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.2515, allocations: 15.94 kB / 0.4997 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.2526, allocations: 55.94 kB / 0.4997 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002757/0.2529, allocations: 56.48 kB / 0.4998 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.45e-05/0.253, allocations: 23.92 kB / 0.4998 GB, free: 1.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001375/0.2544, allocations: 483 kB / 0.5003 GB, free: 1.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.957e-06/0.2544, allocations: 4 kB / 0.5003 GB, free: 1.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001786/0.2562, allocations: 263.9 kB / 0.5005 GB, free: 0.9688 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.000568/0.2568, allocations: 159.1 kB / 0.5007 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2991/0.5559, allocations: 1.241 MB / 0.5019 GB, free: 55.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.556, allocations: 1.562 kB / 0.5019 GB, free: 55.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.5572, allocations: 0.6112 MB / 0.5025 GB, free: 55.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.5586, allocations: 209.2 kB / 0.5027 GB, free: 55.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.5638, allocations: 3.134 MB / 0.5058 GB, free: 54.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008743/0.5647, allocations: 1.16 MB / 0.5069 GB, free: 53.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.5657, allocations: 250.5 kB / 0.5071 GB, free: 53.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.5659, allocations: 66.12 kB / 0.5072 GB, free: 53.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.566, allocations: 1.406 kB / 0.5072 GB, free: 53.67 MB / 382.1 MB Notification: Performance of Templates: time 0.02468/0.5906, allocations: 11.52 MB / 0.5184 GB, free: 50.36 MB / 382.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)