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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 102 kB / 17.06 MB, free: 6.145 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.001405/0.001404, allocations: 195 kB / 18 MB, free: 5.219 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.426/1.426, allocations: 205.1 MB / 223.9 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.173/0.173, allocations: 37.99 MB / 309.2 MB, free: 5.969 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.001495/0.001495, allocations: 67.91 kB / 431.4 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09247, allocations: 55.25 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009735/0.1022, allocations: 7.093 MB / 493.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005196/0.1075, allocations: 2.898 MB / 496.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000636/0.1082, allocations: 23.88 kB / 496.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.1096, allocations: 377.9 kB / 497 MB, free: 14.42 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.002087/0.1117, allocations: 0.7855 MB / 497.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.1125, allocations: 299.5 kB / 498.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.1145, allocations: 1.577 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.1162, allocations: 1.429 MB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009748/0.1172, allocations: 0.6658 MB / 0.49 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.1184, allocations: 0.7476 MB / 0.4907 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002759/0.1187, allocations: 140 kB / 0.4908 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.1198, allocations: 0.6749 MB / 0.4915 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005675/0.1204, allocations: 0.4988 MB / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008855/0.1213, allocations: 0.6536 MB / 0.4926 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.1234, allocations: 2.123 MB / 0.4947 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1235, allocations: 0 / 0.4947 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1235, allocations: 0 / 0.4947 GB, free: 4.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.557e-05/0.1235, allocations: 3.938 kB / 0.4947 GB, free: 4.785 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.003433/0.127, allocations: 1.543 MB / 0.4962 GB, free: 3.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.127, allocations: 11.89 kB / 0.4962 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002603/0.1273, allocations: 172.9 kB / 0.4964 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006759/0.128, allocations: 167.4 kB / 0.4965 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.1296, allocations: 0.8383 MB / 0.4974 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.1298, allocations: 204.7 kB / 0.4976 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.13, allocations: 111.9 kB / 0.4977 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.1323, allocations: 1.461 MB / 0.4991 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.951e-05/0.1323, allocations: 11.94 kB / 0.4991 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.1324, allocations: 36 kB / 0.4991 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.1326, allocations: 74.02 kB / 0.4992 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002502/0.1351, allocations: 1.269 MB / 0.5004 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007969/0.143, allocations: 5.18 MB / 0.5055 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.1447, allocations: 1.029 MB / 0.5065 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007679/0.1455, allocations: 0.4886 MB / 0.507 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.91e-05/0.1456, allocations: 12.55 kB / 0.507 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.1456, allocations: 47.06 kB / 0.507 GB, free: 7.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.657e-06/0.1456, allocations: 0 / 0.507 GB, free: 7.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006233/0.1519, allocations: 3.067 MB / 0.51 GB, free: 4.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.1519, allocations: 111.4 kB / 0.5101 GB, free: 4.418 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009553/0.1529, allocations: 0.6836 MB / 0.5108 GB, free: 3.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.1529, allocations: 37.7 kB / 0.5109 GB, free: 3.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/0.1534, allocations: 482.8 kB / 0.5113 GB, free: 3.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.1537, allocations: 272.1 kB / 0.5116 GB, free: 2.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.154, allocations: 186.5 kB / 0.5117 GB, free: 2.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.1542, allocations: 394.6 kB / 0.5121 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007126/0.155, allocations: 441.8 kB / 0.5125 GB, free: 1.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009281/0.1559, allocations: 0.7204 MB / 0.5132 GB, free: 1.082 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.005755/0.1617, allocations: 2.575 MB / 0.5158 GB, free: 14.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1617, allocations: 4 kB / 0.5158 GB, free: 14.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002209/0.1639, allocations: 1.308 MB / 0.517 GB, free: 13.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.1639, allocations: 11.94 kB / 0.5171 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.1639, allocations: 8.688 kB / 0.5171 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002477/0.1642, allocations: 93.61 kB / 0.5172 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000835/0.1651, allocations: 219.7 kB / 0.5174 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.1663, allocations: 1.453 MB / 0.5188 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006449/0.1669, allocations: 71.84 kB / 0.5189 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.167, allocations: 47.92 kB / 0.5189 GB, free: 10.99 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.000612/0.1676, allocations: 417.7 kB / 0.5193 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.1678, allocations: 82.97 kB / 0.5194 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.1696, allocations: 0.9784 MB / 0.5203 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.1697, allocations: 23.94 kB / 0.5204 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1697, allocations: 8 kB / 0.5204 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.1697, allocations: 3.984 kB / 0.5204 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.1735, allocations: 2.265 MB / 0.5226 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1735, allocations: 0 / 0.5226 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/0.1743, allocations: 139.8 kB / 0.5227 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.982e-05/0.1744, allocations: 28.84 kB / 0.5227 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.1745, allocations: 19.98 kB / 0.5228 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.1755, allocations: 1.382 MB / 0.5241 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1755, allocations: 4.156 kB / 0.5241 GB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/0.1779, allocations: 1.642 MB / 0.5257 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005271/0.1785, allocations: 248.1 kB / 0.526 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.1786, allocations: 20 kB / 0.526 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005102/0.1791, allocations: 47.94 kB / 0.526 GB, free: 3.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.1793, allocations: 56.48 kB / 0.5261 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-05/0.1793, allocations: 23.92 kB / 0.5261 GB, free: 3.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006574/0.18, allocations: 487 kB / 0.5266 GB, free: 2.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.18, allocations: 0 / 0.5266 GB, free: 2.859 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000939/0.181, allocations: 268 kB / 0.5268 GB, free: 2.598 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.002966/0.1839, allocations: 2.246 MB / 0.529 GB, free: 324 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.2136/0.3975, allocations: 1.238 MB / 0.5302 GB, free: 52.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3976, allocations: 1.312 kB / 0.5302 GB, free: 52.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009615/0.3986, allocations: 0.6112 MB / 0.5308 GB, free: 52.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.3997, allocations: 236.6 kB / 0.531 GB, free: 52.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.4112, allocations: 9.002 MB / 0.5398 GB, free: 47.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.412, allocations: 1.157 MB / 0.541 GB, free: 46.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008586/0.4129, allocations: 253.5 kB / 0.5412 GB, free: 46.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000472/0.4134, allocations: 347.5 kB / 0.5415 GB, free: 46.58 MB / 414.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4134, allocations: 0.5 kB / 0.5415 GB, free: 46.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05535/0.4688, allocations: 21.2 MB / 0.5622 GB, free: 34.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.89, allocations: 15.94 kB / 0.5622 GB, free: 34.06 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)