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.001309/0.001309, allocations: 100.2 kB / 16.5 MB, free: 6.641 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.001459/0.001459, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.418/1.418, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1721/0.1721, allocations: 38.02 MB / 329.3 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.11 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1283, allocations: 58.07 MB / 456.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009526/0.1378, allocations: 8.114 MB / 464.3 MB, free: 384 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006092/0.144, allocations: 3.218 MB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.1451, allocations: 51.69 kB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1465, allocations: 328.5 kB / 467.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002097/0.1486, allocations: 0.716 MB / 468.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.1494, allocations: 271.7 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002369/0.1518, allocations: 2.116 MB / 470.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.1533, allocations: 1.126 MB / 472.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008703/0.1542, allocations: 0.5525 MB / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009432/0.1551, allocations: 0.7437 MB / 473.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1553, allocations: 79.98 kB / 473.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.1564, allocations: 0.6474 MB / 474.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005176/0.1569, allocations: 454.8 kB / 474.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006437/0.1576, allocations: 0.591 MB / 475.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001884/0.1595, allocations: 2.025 MB / 477.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1595, allocations: 0 / 477.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1595, allocations: 0 / 477.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.1595, allocations: 0 / 477.2 MB, free: 3.418 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.003215/0.1628, allocations: 1.547 MB / 478.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.1628, allocations: 8.031 kB / 478.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.1635, allocations: 171.4 kB / 478.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.165, allocations: 0.8151 MB / 479.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.1652, allocations: 196.7 kB / 479.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.1653, allocations: 104 kB / 480 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003261/0.1686, allocations: 1.473 MB / 481.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.615e-05/0.1687, allocations: 7.906 kB / 481.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.1689, allocations: 36 kB / 481.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002127/0.1691, allocations: 73.97 kB / 481.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003759/0.1729, allocations: 1.273 MB / 482.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.1852, allocations: 5.219 MB / 488.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002672/0.188, allocations: 1.034 MB / 489.1 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.1894, allocations: 497.2 kB / 489.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.573e-05/0.1895, allocations: 16.55 kB / 489.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/0.1896, allocations: 47.06 kB / 489.6 MB, free: 6.484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 5.4e-06/0.1896, allocations: 0 / 489.6 MB, free: 6.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.01024/0.1998, allocations: 3.055 MB / 492.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.2, allocations: 119.3 kB / 492.8 MB, free: 3.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.2014, allocations: 0.6877 MB / 493.5 MB, free: 2.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/0.2015, allocations: 33.7 kB / 493.5 MB, free: 2.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005215/0.202, allocations: 482.7 kB / 494 MB, free: 2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/0.2024, allocations: 272.2 kB / 494.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004563/0.2029, allocations: 194.3 kB / 494.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002612/0.2032, allocations: 390.7 kB / 494.8 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.2045, allocations: 441.8 kB / 495.3 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.2061, allocations: 0.7206 MB / 496 MB, free: 15.87 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.01028/0.2164, allocations: 2.579 MB / 498.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.2164, allocations: 8 kB / 498.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003961/0.2204, allocations: 1.305 MB / 499.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.2204, allocations: 12.19 kB / 499.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.2205, allocations: 11.94 kB / 499.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/0.2209, allocations: 85.66 kB / 500 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.2224, allocations: 223.6 kB / 0.4885 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.2243, allocations: 1.339 MB / 0.4898 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.2256, allocations: 79.73 kB / 0.4899 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.2257, allocations: 40 kB / 0.4899 GB, free: 9.902 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.0008743/0.2266, allocations: 425.3 kB / 0.4903 GB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.2268, allocations: 79.05 kB / 0.4904 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.2285, allocations: 0.9745 MB / 0.4913 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.2286, allocations: 28.06 kB / 0.4914 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2286, allocations: 0 / 0.4914 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.2286, allocations: 3.984 kB / 0.4914 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003788/0.2324, allocations: 2.281 MB / 0.4936 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.2324, allocations: 0 / 0.4936 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.2331, allocations: 147.8 kB / 0.4937 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.2333, allocations: 28.88 kB / 0.4938 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.2333, allocations: 20 kB / 0.4938 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.2344, allocations: 1.276 MB / 0.495 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.2344, allocations: 3.938 kB / 0.495 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.2367, allocations: 1.646 MB / 0.4967 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/0.2371, allocations: 244.1 kB / 0.4969 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.2372, allocations: 19.94 kB / 0.4969 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.2377, allocations: 47.94 kB / 0.4969 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.2379, allocations: 56.47 kB / 0.497 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.774e-05/0.238, allocations: 20 kB / 0.497 GB, free: 2.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006684/0.2386, allocations: 491 kB / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.2386, allocations: 0 / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001021/0.2397, allocations: 259.9 kB / 0.4977 GB, free: 1.609 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.0003458/0.24, allocations: 155.2 kB / 0.4979 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001961/0.242, allocations: 1.233 MB / 0.4991 GB, free: 188 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.242, allocations: 0.8125 kB / 0.4991 GB, free: 188 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009261/0.2429, allocations: 0.6227 MB / 0.4997 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.2441, allocations: 218.9 kB / 0.4999 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004525/0.2486, allocations: 2.931 MB / 0.5028 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.2494, allocations: 1.158 MB / 0.5039 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008409/0.2503, allocations: 254.9 kB / 0.5041 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.2505, allocations: 67.42 kB / 0.5042 GB, free: 10.86 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2505, allocations: 0 / 0.5042 GB, free: 10.86 MB / 398.1 MB Notification: Performance of Templates: time 0.2275/0.478, allocations: 11.63 MB / 0.5156 GB, free: 70.3 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)