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.001679/0.00168, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.00151/0.00151, allocations: 191 kB / 18 MB, free: 4.977 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.465/1.465, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1734/0.1734, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001632/0.001632, allocations: 63.91 kB / 431.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1285, allocations: 55.25 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01119/0.1397, allocations: 7.085 MB / 494.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005773/0.1455, allocations: 2.902 MB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008754/0.1464, allocations: 23.88 kB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.1479, allocations: 385.8 kB / 497.5 MB, free: 13.92 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.002258/0.1502, allocations: 0.7778 MB / 498.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.151, allocations: 303.5 kB / 498.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.153, allocations: 1.574 MB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.1547, allocations: 1.433 MB / 0.4898 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009897/0.1557, allocations: 0.6658 MB / 0.4905 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1568, allocations: 0.7398 MB / 0.4912 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.157, allocations: 140 kB / 0.4913 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1582, allocations: 0.6866 MB / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004631/0.1587, allocations: 0.4988 MB / 0.4925 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006833/0.1594, allocations: 0.6496 MB / 0.4931 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002267/0.1616, allocations: 2.119 MB / 0.4952 GB, free: 4.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1616, allocations: 0 / 0.4952 GB, free: 4.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1617, allocations: 0 / 0.4952 GB, free: 4.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.1617, allocations: 0 / 0.4952 GB, free: 4.293 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.003477/0.1652, allocations: 1.547 MB / 0.4967 GB, free: 2.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1652, allocations: 11.89 kB / 0.4967 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006919/0.1659, allocations: 171.5 kB / 0.4969 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.1674, allocations: 0.8385 MB / 0.4977 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.1676, allocations: 200.7 kB / 0.4979 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.1678, allocations: 111.9 kB / 0.498 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.1702, allocations: 1.465 MB / 0.4994 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.873e-05/0.1702, allocations: 11.92 kB / 0.4994 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.1703, allocations: 43.92 kB / 0.4995 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.1705, allocations: 73.97 kB / 0.4995 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.1725, allocations: 1.265 MB / 0.5008 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00702/0.1796, allocations: 5.172 MB / 0.5058 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.1813, allocations: 1.035 MB / 0.5068 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008034/0.1821, allocations: 0.4886 MB / 0.5073 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.634e-05/0.1821, allocations: 13.19 kB / 0.5073 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1822, allocations: 39.12 kB / 0.5074 GB, free: 7.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.424e-06/0.1822, allocations: 0 / 0.5074 GB, free: 7.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.005949/0.1881, allocations: 3.07 MB / 0.5104 GB, free: 4.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.1882, allocations: 111.5 kB / 0.5105 GB, free: 4.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008113/0.189, allocations: 0.6875 MB / 0.5111 GB, free: 3.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/0.1891, allocations: 41.7 kB / 0.5112 GB, free: 3.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/0.1895, allocations: 478.7 kB / 0.5116 GB, free: 2.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.1897, allocations: 272.1 kB / 0.5119 GB, free: 2.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.19, allocations: 186.5 kB / 0.5121 GB, free: 2.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.1903, allocations: 390.7 kB / 0.5125 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006879/0.1909, allocations: 445.8 kB / 0.5129 GB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008955/0.1919, allocations: 0.7281 MB / 0.5136 GB, free: 0.75 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.005317/0.1972, allocations: 2.575 MB / 0.5161 GB, free: 14.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.1972, allocations: 4 kB / 0.5161 GB, free: 14.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002127/0.1993, allocations: 1.305 MB / 0.5174 GB, free: 12.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.1994, allocations: 8 kB / 0.5174 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.548e-05/0.1994, allocations: 11.94 kB / 0.5174 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.1997, allocations: 89.59 kB / 0.5175 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007902/0.2005, allocations: 223.7 kB / 0.5177 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.2017, allocations: 1.449 MB / 0.5191 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000671/0.2024, allocations: 79.89 kB / 0.5192 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-05/0.2024, allocations: 43.91 kB / 0.5192 GB, free: 10.66 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.0006146/0.2031, allocations: 417.3 kB / 0.5196 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.2032, allocations: 79.06 kB / 0.5197 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.205, allocations: 0.9901 MB / 0.5207 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/0.205, allocations: 16 kB / 0.5207 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.205, allocations: 7.875 kB / 0.5207 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.205, allocations: 7.984 kB / 0.5207 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003713/0.2088, allocations: 2.258 MB / 0.5229 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.2088, allocations: 7.984 kB / 0.5229 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007132/0.2095, allocations: 139.8 kB / 0.523 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.041e-05/0.2096, allocations: 28.88 kB / 0.5231 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.2097, allocations: 16 kB / 0.5231 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009909/0.2107, allocations: 1.39 MB / 0.5244 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2107, allocations: 4.031 kB / 0.5245 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.213, allocations: 1.642 MB / 0.5261 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003435/0.2133, allocations: 244.1 kB / 0.5263 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.2135, allocations: 19.98 kB / 0.5263 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/0.2139, allocations: 43.95 kB / 0.5263 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.2141, allocations: 56.47 kB / 0.5264 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.527e-05/0.2142, allocations: 20 kB / 0.5264 GB, free: 3.004 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006342/0.2148, allocations: 491 kB / 0.5269 GB, free: 2.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2148, allocations: 0 / 0.5269 GB, free: 2.531 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000943/0.2158, allocations: 259.9 kB / 0.5271 GB, free: 2.277 MB / 414.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.000349/0.2161, allocations: 172.2 kB / 0.5273 GB, free: 2.102 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001905/0.218, allocations: 1.238 MB / 0.5285 GB, free: 0.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.218, allocations: 192 / 0.5285 GB, free: 0.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009006/0.219, allocations: 0.6149 MB / 0.5291 GB, free: 204 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2581/0.4771, allocations: 229.4 kB / 0.5293 GB, free: 51.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005593/0.4828, allocations: 2.499 MB / 0.5318 GB, free: 50.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007722/0.4836, allocations: 1.16 MB / 0.5329 GB, free: 50.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008004/0.4844, allocations: 254.1 kB / 0.5331 GB, free: 50.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.4846, allocations: 73.22 kB / 0.5332 GB, free: 50.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4846, allocations: 0 / 0.5332 GB, free: 50.2 MB / 414.1 MB Notification: Performance of Templates: time 0.0274/0.512, allocations: 12.54 MB / 0.5455 GB, free: 47.08 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)