Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_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.001278/0.001278, allocations: 108.2 kB / 16.92 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.001306/0.001306, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.387/1.387, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.05 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 70.02 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.0955, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008411/0.1039, allocations: 7.072 MB / 464.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004259/0.1082, allocations: 2.855 MB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000482/0.1087, allocations: 31.81 kB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1099, allocations: 377.8 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.1117, allocations: 0.7933 MB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.1124, allocations: 299.6 kB / 468.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001774/0.1142, allocations: 1.57 MB / 470 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.1158, allocations: 1.425 MB / 471.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008029/0.1166, allocations: 0.6425 MB / 472 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009716/0.1176, allocations: 0.7475 MB / 472.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.1179, allocations: 140 kB / 472.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.119, allocations: 0.7099 MB / 473.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004805/0.1195, allocations: 0.4989 MB / 474.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008107/0.1203, allocations: 0.6535 MB / 474.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00191/0.1222, allocations: 2.1 MB / 476.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1222, allocations: 0 / 476.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1222, allocations: 0 / 476.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.448e-05/0.1223, allocations: 0 / 476.9 MB, free: 3.977 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.003284/0.1256, allocations: 1.543 MB / 478.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1256, allocations: 11.89 kB / 478.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002315/0.1259, allocations: 168.9 kB / 478.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006727/0.1266, allocations: 167.5 kB / 478.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.1279, allocations: 0.8149 MB / 479.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.1282, allocations: 196.8 kB / 479.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.1284, allocations: 111.9 kB / 479.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.1306, allocations: 1.465 MB / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1306, allocations: 7.984 kB / 481.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.1307, allocations: 36 kB / 481.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.1309, allocations: 85.97 kB / 481.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.1329, allocations: 1.261 MB / 482.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006694/0.1396, allocations: 5.227 MB / 488 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.1411, allocations: 1.028 MB / 489 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.1419, allocations: 0.4922 MB / 489.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-05/0.142, allocations: 12.56 kB / 489.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.142, allocations: 47 kB / 489.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.805e-06/0.142, allocations: 0 / 489.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005959/0.148, allocations: 3.067 MB / 492.6 MB, free: 3.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.1481, allocations: 119.5 kB / 492.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008466/0.1489, allocations: 0.6836 MB / 493.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.545e-05/0.149, allocations: 41.7 kB / 493.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/0.1493, allocations: 478.7 kB / 493.9 MB, free: 2.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002206/0.1495, allocations: 264.2 kB / 494.2 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/0.1498, allocations: 190.5 kB / 494.4 MB, free: 1.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.15, allocations: 390.7 kB / 494.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007803/0.1508, allocations: 441.8 kB / 495.2 MB, free: 1.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009541/0.1518, allocations: 0.7207 MB / 495.9 MB, free: 256 kB / 366.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.005527/0.1573, allocations: 2.583 MB / 498.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.1574, allocations: 7.984 kB / 498.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00217/0.1595, allocations: 1.305 MB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1596, allocations: 11.94 kB / 499.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.1596, allocations: 8 kB / 499.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/0.1599, allocations: 89.61 kB / 499.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.1607, allocations: 223.9 kB / 0.4884 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.162, allocations: 1.45 MB / 0.4898 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007818/0.1628, allocations: 83.81 kB / 0.4899 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-05/0.1629, allocations: 36 kB / 0.4899 GB, free: 10.16 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.0006849/0.1636, allocations: 425.5 kB / 0.4903 GB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.1638, allocations: 82.95 kB / 0.4904 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/0.1655, allocations: 0.9745 MB / 0.4914 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/0.1655, allocations: 27.92 kB / 0.4914 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1656, allocations: 4 kB / 0.4914 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1656, allocations: 3.984 kB / 0.4914 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/0.1692, allocations: 2.273 MB / 0.4936 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.1692, allocations: 3.984 kB / 0.4936 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006809/0.1699, allocations: 135.8 kB / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.279e-05/0.17, allocations: 28.81 kB / 0.4938 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/0.1701, allocations: 24 kB / 0.4938 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009344/0.171, allocations: 1.382 MB / 0.4951 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.171, allocations: 7.969 kB / 0.4951 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.1733, allocations: 1.638 MB / 0.4967 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003599/0.1736, allocations: 248 kB / 0.497 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.1738, allocations: 15.98 kB / 0.497 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.1743, allocations: 51.94 kB / 0.497 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.1744, allocations: 60.42 kB / 0.4971 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.1745, allocations: 20 kB / 0.4971 GB, free: 2.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005656/0.175, allocations: 490.9 kB / 0.4976 GB, free: 2.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1751, allocations: 0 / 0.4976 GB, free: 2.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008598/0.1759, allocations: 256 kB / 0.4978 GB, free: 1.762 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.002721/0.1786, allocations: 2.245 MB / 0.5 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00243/0.1811, allocations: 1.535 MB / 0.5015 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1811, allocations: 4.062 kB / 0.5015 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008293/0.1819, allocations: 0.6071 MB / 0.5021 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.183, allocations: 241.2 kB / 0.5024 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.1959, allocations: 9.238 MB / 0.5114 GB, free: 3.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009069/0.1969, allocations: 1.15 MB / 0.5125 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007472/0.1976, allocations: 262.9 kB / 0.5128 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/0.1981, allocations: 351.2 kB / 0.5131 GB, free: 1.672 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1981, allocations: 0 / 0.5131 GB, free: 1.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2213/0.4195, allocations: 20.53 MB / 0.5331 GB, free: 66.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.13/9.55, allocations: 7.047 kB / 0.5331 GB, free: 66.18 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)