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.0007819/0.0007819, allocations: 89.97 kB / 16.32 MB, free: 6.449 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.0008412/0.0008413, allocations: 179 kB / 17.21 MB, free: 6.32 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.53/1.53, allocations: 205.4 MB / 223.4 MB, free: 5.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3733/0.3733, allocations: 38.06 MB / 309.7 MB, free: 8.859 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.0005307/0.0005307, allocations: 16 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1295, allocations: 56.33 MB / 433 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008212/0.1377, allocations: 7.249 MB / 440.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005534/0.1433, allocations: 3.036 MB / 443.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.1446, allocations: 47.69 kB / 443.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.1458, allocations: 214.5 kB / 443.5 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003029/0.1488, allocations: 0.7624 MB / 444.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.15, allocations: 271.6 kB / 444.5 MB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.1525, allocations: 1.749 MB / 446.3 MB, free: 9.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.1542, allocations: 1.134 MB / 447.4 MB, free: 8.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008514/0.1551, allocations: 0.502 MB / 447.9 MB, free: 7.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00102/0.1561, allocations: 0.6775 MB / 448.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.1563, allocations: 56 kB / 448.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.1574, allocations: 0.6084 MB / 449.2 MB, free: 6.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003969/0.1578, allocations: 422.9 kB / 449.7 MB, free: 5.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.1581, allocations: 253.1 kB / 449.9 MB, free: 5.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.1596, allocations: 1.66 MB / 451.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1596, allocations: 0 / 451.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1596, allocations: 0 / 451.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.156e-05/0.1597, allocations: 0 / 451.6 MB, free: 3.879 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.002931/0.1626, allocations: 1.352 MB / 452.9 MB, free: 2.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.906e-05/0.1627, allocations: 12.03 kB / 452.9 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002886/0.163, allocations: 164.8 kB / 453.1 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007158/0.1637, allocations: 166.5 kB / 453.3 MB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001429/0.1652, allocations: 0.7946 MB / 454 MB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/0.1654, allocations: 204.8 kB / 454.2 MB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.1656, allocations: 104 kB / 454.3 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2781/0.4437, allocations: 1.463 MB / 455.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.386e-05/0.4438, allocations: 17.02 kB / 455.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.651e-05/0.4439, allocations: 40.81 kB / 455.9 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.444, allocations: 76.91 kB / 455.9 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001943/0.446, allocations: 1.257 MB / 457.2 MB, free: 50.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006149/0.4521, allocations: 5.229 MB / 462.4 MB, free: 48.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.4535, allocations: 1.036 MB / 463.5 MB, free: 48.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.4541, allocations: 0.4969 MB / 464 MB, free: 48.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.4542, allocations: 17.39 kB / 464 MB, free: 48.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.4542, allocations: 48.91 kB / 464 MB, free: 48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=74): time 2.655e-06/0.4542, allocations: 0 / 464 MB, free: 48 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.00508/0.4593, allocations: 3.127 MB / 467.2 MB, free: 46.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.4593, allocations: 110 kB / 467.3 MB, free: 46.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007052/0.4601, allocations: 0.6762 MB / 467.9 MB, free: 46.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.4601, allocations: 40.98 kB / 468 MB, free: 46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.4603, allocations: 481.3 kB / 468.4 MB, free: 45.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.4605, allocations: 266.7 kB / 468.7 MB, free: 45.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.4605, allocations: 15.22 kB / 468.7 MB, free: 45.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4607, allocations: 389.6 kB / 469.1 MB, free: 45.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.4613, allocations: 448.8 kB / 469.5 MB, free: 44.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006629/0.462, allocations: 0.711 MB / 470.3 MB, free: 44.39 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.003379/0.4653, allocations: 1.578 MB / 471.8 MB, free: 43.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4654, allocations: 0 / 471.8 MB, free: 43.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001808/0.4672, allocations: 1.313 MB / 473.1 MB, free: 43.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.4672, allocations: 13.34 kB / 473.2 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.4672, allocations: 8.75 kB / 473.2 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002125/0.4675, allocations: 86.69 kB / 473.3 MB, free: 43.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007383/0.4682, allocations: 225.7 kB / 473.5 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007759/0.469, allocations: 1.349 MB / 474.8 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/0.4696, allocations: 93.81 kB / 474.9 MB, free: 41.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.525e-05/0.4697, allocations: 44.16 kB / 475 MB, free: 41.84 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[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 initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005752/0.4703, allocations: 407.8 kB / 475.4 MB, free: 41.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.4705, allocations: 76.47 kB / 475.4 MB, free: 41.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.4719, allocations: 0.9943 MB / 476.4 MB, free: 41.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/0.472, allocations: 20.77 kB / 476.4 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.472, allocations: 3.562 kB / 476.4 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.472, allocations: 0 / 476.4 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.475, allocations: 2.291 MB / 478.7 MB, free: 39.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.475, allocations: 3.25 kB / 478.7 MB, free: 39.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006233/0.4756, allocations: 141.3 kB / 478.9 MB, free: 39.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.589e-05/0.4757, allocations: 27.67 kB / 478.9 MB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.4757, allocations: 16.91 kB / 478.9 MB, free: 39.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006083/0.4764, allocations: 1.281 MB / 480.2 MB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4764, allocations: 7.016 kB / 480.2 MB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.4782, allocations: 1.653 MB / 481.9 MB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.4785, allocations: 244.7 kB / 482.1 MB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.752e-05/0.4786, allocations: 17.52 kB / 482.1 MB, free: 37.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.4791, allocations: 62.36 kB / 482.2 MB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.4792, allocations: 61.5 kB / 482.2 MB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.4793, allocations: 20.56 kB / 482.3 MB, free: 37.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004855/0.4797, allocations: 476.9 kB / 482.7 MB, free: 37.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4798, allocations: 0 / 482.7 MB, free: 37.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009311/0.4807, allocations: 255.6 kB / 483 MB, free: 37.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002379/0.4831, allocations: 2.258 MB / 485.2 MB, free: 36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.4849, allocations: 1.243 MB / 486.5 MB, free: 35.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4849, allocations: 0 / 486.5 MB, free: 35.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007816/0.4857, allocations: 0.613 MB / 487.1 MB, free: 35.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4868, allocations: 221 kB / 487.3 MB, free: 35.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.4983, allocations: 6.858 MB / 494.2 MB, free: 31.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.4996, allocations: 1.158 MB / 495.3 MB, free: 30.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001203/0.5009, allocations: 256 kB / 495.6 MB, free: 30.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005749/0.5014, allocations: 340.7 kB / 495.9 MB, free: 30.41 MB / 382.1 MB Notification: Performance of SimCode: time 2.505e-06/0.5014, allocations: 0 / 495.9 MB, free: 30.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04363/0.5451, allocations: 19.67 MB / 0.5035 GB, free: 24.86 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.5453, allocations: 197 kB / 0.5037 GB, free: 24.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.702, allocations: 3.938 kB / 0.5037 GB, free: 24.61 MB / 382.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/linux/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) Environment - environmentSimulation: