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: "" <> 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.001495/0.001495, allocations: 102.8 kB / 16.92 MB, free: 6.191 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.001756/0.001756, allocations: 191.3 kB / 17.85 MB, free: 5.301 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.326/1.326, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1782/0.1782, allocations: 38.04 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.2 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09149, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009372/0.1009, allocations: 7.083 MB / 464.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004525/0.1055, allocations: 2.851 MB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005071/0.106, allocations: 31.81 kB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.1072, allocations: 381.2 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.109, allocations: 0.7894 MB / 468.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006443/0.1096, allocations: 307.6 kB / 468.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001662/0.1113, allocations: 1.566 MB / 470 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.1129, allocations: 1.425 MB / 471.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008258/0.1137, allocations: 0.6385 MB / 472 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009806/0.1147, allocations: 0.7476 MB / 472.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002458/0.115, allocations: 140 kB / 472.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.1161, allocations: 0.7138 MB / 473.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004692/0.1166, allocations: 0.4949 MB / 474.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007601/0.1174, allocations: 0.6574 MB / 474.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00192/0.1193, allocations: 2.088 MB / 476.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1193, allocations: 0 / 476.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1193, allocations: 0 / 476.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.38e-05/0.1194, allocations: 8 kB / 476.9 MB, free: 3.98 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.00327/0.1226, allocations: 1.547 MB / 478.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1227, allocations: 15.89 kB / 478.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002328/0.1229, allocations: 168.9 kB / 478.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006729/0.1236, allocations: 167.5 kB / 478.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.1249, allocations: 0.8071 MB / 479.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.1251, allocations: 196.8 kB / 479.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.1253, allocations: 107.9 kB / 479.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.1277, allocations: 1.473 MB / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.1277, allocations: 3.984 kB / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.1279, allocations: 40 kB / 481.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.128, allocations: 77.91 kB / 481.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002325/0.1303, allocations: 1.261 MB / 482.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007164/0.1375, allocations: 5.227 MB / 487.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.139, allocations: 1.035 MB / 489 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007617/0.1398, allocations: 0.4894 MB / 489.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.029e-05/0.1399, allocations: 12.55 kB / 489.5 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.1399, allocations: 47.06 kB / 489.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.705e-06/0.1399, allocations: 4 kB / 489.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006039/0.146, allocations: 3.062 MB / 492.6 MB, free: 3.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.146, allocations: 115.4 kB / 492.7 MB, free: 3.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007907/0.1468, allocations: 0.6797 MB / 493.4 MB, free: 2.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.1469, allocations: 37.7 kB / 493.4 MB, free: 2.859 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003243/0.1472, allocations: 486.8 kB / 493.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.1474, allocations: 268.2 kB / 494.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.1477, allocations: 186.5 kB / 494.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1479, allocations: 390.7 kB / 494.7 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007204/0.1486, allocations: 441.8 kB / 495.2 MB, free: 1.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008744/0.1495, allocations: 0.7206 MB / 495.9 MB, free: 264 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.005457/0.155, allocations: 2.583 MB / 498.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.155, allocations: 4 kB / 498.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00217/0.1572, allocations: 1.312 MB / 499.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1572, allocations: 12.66 kB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.1572, allocations: 8 kB / 499.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/0.1575, allocations: 81.67 kB / 499.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008454/0.1583, allocations: 235.5 kB / 0.4884 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.1594, allocations: 1.449 MB / 0.4898 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006385/0.1601, allocations: 75.89 kB / 0.4899 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-05/0.1602, allocations: 40 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.0005307/0.1607, allocations: 423 kB / 0.4903 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.1609, allocations: 90.94 kB / 0.4904 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.1625, allocations: 0.9706 MB / 0.4914 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.593e-05/0.1626, allocations: 23.92 kB / 0.4914 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1626, allocations: 3.938 kB / 0.4914 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1626, allocations: 7.984 kB / 0.4914 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.1661, allocations: 2.265 MB / 0.4936 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.1661, allocations: 4 kB / 0.4936 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007124/0.1668, allocations: 147.8 kB / 0.4937 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.267e-05/0.1669, allocations: 24.84 kB / 0.4938 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.167, allocations: 16 kB / 0.4938 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009243/0.1679, allocations: 1.39 MB / 0.4951 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1679, allocations: 160 / 0.4951 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.1702, allocations: 1.649 MB / 0.4967 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003193/0.1705, allocations: 240.1 kB / 0.497 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.1706, allocations: 27.92 kB / 0.497 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005018/0.1712, allocations: 39.95 kB / 0.497 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.1713, allocations: 68.41 kB / 0.4971 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.876e-05/0.1714, allocations: 16 kB / 0.4971 GB, free: 2.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005535/0.1719, allocations: 486.9 kB / 0.4976 GB, free: 2.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.172, allocations: 0 / 0.4976 GB, free: 2.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009017/0.1729, allocations: 264 kB / 0.4978 GB, free: 1.758 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.00273/0.1756, allocations: 2.241 MB / 0.5 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.178, allocations: 1.529 MB / 0.5015 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.178, allocations: 1.812 kB / 0.5015 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008536/0.1789, allocations: 0.6149 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.00107/0.18, allocations: 225.8 kB / 0.5023 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.1923, allocations: 9.246 MB / 0.5114 GB, free: 3.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007425/0.1931, allocations: 1.154 MB / 0.5125 GB, free: 2.281 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007481/0.1938, allocations: 258.9 kB / 0.5127 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004935/0.1943, allocations: 351.3 kB / 0.5131 GB, free: 1.68 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1943, allocations: 0 / 0.5131 GB, free: 1.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2018/0.3961, allocations: 20.51 MB / 0.5331 GB, free: 66.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.756/10.15, allocations: 11.22 kB / 0.5331 GB, free: 66.27 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)