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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.00121/0.00121, allocations: 107.9 kB / 17.74 MB, free: 5.336 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.001414/0.001415, allocations: 198.5 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.99 MB / 309.9 MB, free: 5.941 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 71.89 kB / 432.5 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09762, allocations: 55.25 MB / 487.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008992/0.1066, allocations: 7.081 MB / 494.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005047/0.1117, allocations: 2.898 MB / 497.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007294/0.1125, allocations: 23.88 kB / 497.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.1139, allocations: 386.4 kB / 498.2 MB, free: 13.89 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.003036/0.117, allocations: 0.7855 MB / 499 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.1183, allocations: 295.5 kB / 499.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002488/0.1208, allocations: 1.581 MB / 0.4891 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002237/0.123, allocations: 1.425 MB / 0.4905 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.1243, allocations: 0.6619 MB / 0.4911 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.1256, allocations: 0.7437 MB / 0.4919 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003885/0.126, allocations: 140 kB / 0.492 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.1275, allocations: 0.6827 MB / 0.4927 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006772/0.1282, allocations: 0.5027 MB / 0.4931 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.1293, allocations: 0.6535 MB / 0.4938 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002121/0.1315, allocations: 2.115 MB / 0.4958 GB, free: 4.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1315, allocations: 0 / 0.4958 GB, free: 4.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1315, allocations: 0 / 0.4958 GB, free: 4.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.1315, allocations: 0 / 0.4958 GB, free: 4.27 MB / 382.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.002847/0.1344, allocations: 1.543 MB / 0.4974 GB, free: 2.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1344, allocations: 19.81 kB / 0.4974 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006409/0.1351, allocations: 171.5 kB / 0.4975 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.1366, allocations: 0.8347 MB / 0.4984 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.1368, allocations: 204.7 kB / 0.4985 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.137, allocations: 107.8 kB / 0.4987 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.1392, allocations: 1.469 MB / 0.5001 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.1392, allocations: 0 / 0.5001 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.1393, allocations: 47.88 kB / 0.5001 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.1394, allocations: 77.97 kB / 0.5002 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.1415, allocations: 1.261 MB / 0.5014 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006654/0.1481, allocations: 5.18 MB / 0.5065 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.1497, allocations: 1.024 MB / 0.5075 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007741/0.1505, allocations: 0.5041 MB / 0.508 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.196e-05/0.1505, allocations: 16.55 kB / 0.508 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1506, allocations: 35.12 kB / 0.508 GB, free: 7.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.597e-06/0.1506, allocations: 0 / 0.508 GB, free: 7.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006113/0.1567, allocations: 3.066 MB / 0.511 GB, free: 4.203 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.1568, allocations: 111.5 kB / 0.5111 GB, free: 4.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008303/0.1576, allocations: 0.6875 MB / 0.5118 GB, free: 3.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.604e-05/0.1577, allocations: 41.7 kB / 0.5119 GB, free: 3.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/0.158, allocations: 478.8 kB / 0.5123 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.1582, allocations: 272.1 kB / 0.5126 GB, free: 2.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.1585, allocations: 186.5 kB / 0.5127 GB, free: 2.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.1587, allocations: 390.7 kB / 0.5131 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007538/0.1595, allocations: 441.8 kB / 0.5135 GB, free: 1.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009131/0.1604, allocations: 0.7203 MB / 0.5142 GB, free: 0.7344 MB / 398.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.005721/0.1662, allocations: 2.587 MB / 0.5168 GB, free: 14.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1662, allocations: 0 / 0.5168 GB, free: 14.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002527/0.1687, allocations: 1.309 MB / 0.518 GB, free: 12.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.1688, allocations: 8 kB / 0.5181 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.1688, allocations: 15.98 kB / 0.5181 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002581/0.169, allocations: 85.61 kB / 0.5182 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/0.1699, allocations: 227.6 kB / 0.5184 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.1711, allocations: 1.442 MB / 0.5198 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007572/0.1718, allocations: 83.89 kB / 0.5199 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.283e-05/0.1719, allocations: 40 kB / 0.5199 GB, free: 10.64 MB / 414.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.0006197/0.1725, allocations: 421.6 kB / 0.5203 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.1728, allocations: 79.2 kB / 0.5204 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.1746, allocations: 0.9822 MB / 0.5213 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.1746, allocations: 7.984 kB / 0.5213 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1746, allocations: 7.875 kB / 0.5213 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.1751, allocations: 248 kB / 0.5216 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.1753, allocations: 19.98 kB / 0.5216 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.1758, allocations: 47.94 kB / 0.5216 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.176, allocations: 60.47 kB / 0.5217 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002326/0.1783, allocations: 1.253 MB / 0.5229 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002506/0.1808, allocations: 1.836 MB / 0.5247 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007001/0.1815, allocations: 484.3 kB / 0.5252 GB, free: 5.141 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000757/0.1823, allocations: 483 kB / 0.5256 GB, free: 4.676 MB / 414.1 MB Notification: Performance of Backend: time 3.51e-07/0.1823, allocations: 0 / 0.5256 GB, free: 4.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.185, allocations: 1.036 MB / 0.5267 GB, free: 3.602 MB / 414.1 MB Notification: Performance of SimCode: time 0.003968/0.1889, allocations: 2.635 MB / 0.5292 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of Templates: time 0.2368/0.4258, allocations: 15.38 MB / 0.5442 GB, free: 47.7 MB / 414.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)