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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.551/1.551, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1859/0.1859, allocations: 38.51 MB / 348.7 MB, free: 2.586 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 59.91 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1279, allocations: 62.42 MB / 0.5367 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009424/0.1373, allocations: 7.16 MB / 0.5437 GB, free: 368 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005589/0.1429, allocations: 2.925 MB / 0.5465 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006452/0.1436, allocations: 35.75 kB / 0.5466 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.1449, allocations: 385.8 kB / 0.5469 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002166/0.1471, allocations: 0.8051 MB / 0.5477 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007636/0.1479, allocations: 303.5 kB / 0.548 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002193/0.1501, allocations: 1.585 MB / 0.5495 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.1517, allocations: 1.238 MB / 0.5508 GB, free: 9.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.1527, allocations: 0.662 MB / 0.5514 GB, free: 8.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1539, allocations: 0.7904 MB / 0.5522 GB, free: 7.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.1541, allocations: 140 kB / 0.5523 GB, free: 7.453 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.1553, allocations: 0.7138 MB / 0.553 GB, free: 6.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005026/0.1558, allocations: 0.5027 MB / 0.5535 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007113/0.1565, allocations: 0.6651 MB / 0.5541 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.1589, allocations: 2.13 MB / 0.5562 GB, free: 3.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1589, allocations: 3.938 kB / 0.5562 GB, free: 3.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1589, allocations: 0 / 0.5562 GB, free: 3.426 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.1589, allocations: 0 / 0.5562 GB, free: 3.426 MB / 414.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.003254/0.1622, allocations: 1.573 MB / 0.5578 GB, free: 1.801 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1622, allocations: 8.031 kB / 0.5578 GB, free: 1.793 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002231/0.1624, allocations: 168.9 kB / 0.5579 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007412/0.1632, allocations: 180.1 kB / 0.5581 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.1646, allocations: 0.8504 MB / 0.5589 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.1649, allocations: 200.8 kB / 0.5591 GB, free: 340 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.165, allocations: 100 kB / 0.5592 GB, free: 240 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.1674, allocations: 1.477 MB / 0.5607 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.801e-05/0.1675, allocations: 11.95 kB / 0.5607 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.1676, allocations: 39.98 kB / 0.5607 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.1677, allocations: 73.97 kB / 0.5608 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00224/0.1699, allocations: 1.272 MB / 0.562 GB, free: 13.3 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007231/0.1772, allocations: 5.182 MB / 0.5671 GB, free: 7.938 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.1788, allocations: 0.9756 MB / 0.568 GB, free: 6.902 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000848/0.1796, allocations: 464.9 kB / 0.5685 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-05/0.1797, allocations: 13.19 kB / 0.5685 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.1797, allocations: 51.05 kB / 0.5685 GB, free: 6.367 MB / 430.1 MB Notification: Performance of pre-optimization done (n=74): time 2.655e-06/0.1797, allocations: 0 / 0.5685 GB, free: 6.367 MB / 430.1 MB Notification: Performance of matching and sorting (n=78): time 0.006436/0.1862, allocations: 3.093 MB / 0.5716 GB, free: 3.203 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.843e-05/0.1863, allocations: 111.4 kB / 0.5717 GB, free: 3.07 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009055/0.1872, allocations: 0.6876 MB / 0.5723 GB, free: 2.375 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.1872, allocations: 45.86 kB / 0.5724 GB, free: 2.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.1876, allocations: 496.1 kB / 0.5729 GB, free: 1.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.1878, allocations: 281.6 kB / 0.5731 GB, free: 1.555 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.1881, allocations: 186.6 kB / 0.5733 GB, free: 1.363 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.1884, allocations: 390.7 kB / 0.5737 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007657/0.1891, allocations: 441.8 kB / 0.5741 GB, free: 0.543 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009845/0.1901, allocations: 0.7164 MB / 0.5748 GB, free: 15.7 MB / 446.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.005978/0.1961, allocations: 2.594 MB / 0.5773 GB, free: 12.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1961, allocations: 0 / 0.5773 GB, free: 12.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002446/0.1985, allocations: 1.313 MB / 0.5786 GB, free: 11.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.1986, allocations: 11.94 kB / 0.5786 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/0.1986, allocations: 16.09 kB / 0.5786 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002879/0.1989, allocations: 85.61 kB / 0.5787 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000889/0.1998, allocations: 223.6 kB / 0.5789 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.2012, allocations: 1.45 MB / 0.5804 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/0.2019, allocations: 79.88 kB / 0.5804 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.448e-05/0.202, allocations: 44.06 kB / 0.5805 GB, free: 9.59 MB / 446.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.0007202/0.2027, allocations: 416.9 kB / 0.5809 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.2029, allocations: 91.42 kB / 0.581 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.2049, allocations: 0.9745 MB / 0.5819 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.567e-05/0.205, allocations: 27.86 kB / 0.5819 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.205, allocations: 4 kB / 0.5819 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.205, allocations: 3.984 kB / 0.5819 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004414/0.2094, allocations: 2.262 MB / 0.5841 GB, free: 5.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.2094, allocations: 4 kB / 0.5842 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007425/0.2101, allocations: 143.8 kB / 0.5843 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.2103, allocations: 20.86 kB / 0.5843 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.2103, allocations: 23.98 kB / 0.5843 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.2117, allocations: 1.39 MB / 0.5857 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2117, allocations: 0 / 0.5857 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/0.2146, allocations: 1.659 MB / 0.5873 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005164/0.2151, allocations: 248.5 kB / 0.5875 GB, free: 2.055 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.2152, allocations: 15.98 kB / 0.5876 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005193/0.2158, allocations: 39.95 kB / 0.5876 GB, free: 2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.2159, allocations: 64.47 kB / 0.5877 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.216, allocations: 16 kB / 0.5877 GB, free: 1.922 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006759/0.2167, allocations: 486.9 kB / 0.5881 GB, free: 1.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2167, allocations: 4 kB / 0.5881 GB, free: 1.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001075/0.2177, allocations: 263.9 kB / 0.5884 GB, free: 1.191 MB / 446.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.317/0.5347, allocations: 2.238 MB / 0.5906 GB, free: 49.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002545/0.5373, allocations: 1.188 MB / 0.5917 GB, free: 49.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5373, allocations: 1.5 kB / 0.5917 GB, free: 49.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009452/0.5382, allocations: 0.577 MB / 0.5923 GB, free: 49.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.5395, allocations: 220.2 kB / 0.5925 GB, free: 49.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/0.5545, allocations: 9.041 MB / 0.6013 GB, free: 44.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.5556, allocations: 1.153 MB / 0.6025 GB, free: 43.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.5566, allocations: 255 kB / 0.6027 GB, free: 43.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.5571, allocations: 347.5 kB / 0.603 GB, free: 43.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.5571, allocations: 0 / 0.603 GB, free: 43.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05725/0.6144, allocations: 21.07 MB / 0.6236 GB, free: 31.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.94, allocations: 4 kB / 0.6236 GB, free: 31.78 MB / 446.1 MB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.027083719003713] Failed to read output from testmodel.py, exit status != 0: 15.030068063992076 15.041462732 14.880209327 Calling exit ...