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.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.001342/0.001342, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001479/0.001479, allocations: 203.3 kB / 20.74 MB, free: 2.34 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.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1867/0.1867, allocations: 38.52 MB / 348.7 MB, free: 2.66 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-master/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_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"}) [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.002013/0.002013, allocations: 79.8 kB / 487.2 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1225, allocations: 62.41 MB / 0.5367 GB, free: 7.574 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01034/0.1328, allocations: 7.169 MB / 0.5437 GB, free: 384 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006617/0.1395, allocations: 2.917 MB / 0.5465 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.1405, allocations: 43.69 kB / 0.5466 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.1421, allocations: 381.8 kB / 0.5469 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00272/0.1448, allocations: 0.7895 MB / 0.5477 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008984/0.1457, allocations: 315.4 kB / 0.548 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.1484, allocations: 1.589 MB / 0.5496 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.1502, allocations: 1.234 MB / 0.5508 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.1514, allocations: 0.662 MB / 0.5514 GB, free: 8.406 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.1526, allocations: 0.7904 MB / 0.5522 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002176/0.1529, allocations: 140 kB / 0.5523 GB, free: 7.477 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.1542, allocations: 0.7177 MB / 0.553 GB, free: 6.758 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005848/0.1548, allocations: 0.5027 MB / 0.5535 GB, free: 6.254 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000815/0.1556, allocations: 0.6573 MB / 0.5542 GB, free: 5.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002675/0.1583, allocations: 2.134 MB / 0.5562 GB, free: 3.453 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1583, allocations: 0 / 0.5562 GB, free: 3.453 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1583, allocations: 0 / 0.5562 GB, free: 3.453 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.852e-05/0.1583, allocations: 0 / 0.5562 GB, free: 3.453 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.003356/0.1617, allocations: 1.573 MB / 0.5578 GB, free: 1.828 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1617, allocations: 12.03 kB / 0.5578 GB, free: 1.816 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000243/0.162, allocations: 168.9 kB / 0.5579 GB, free: 1.641 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007407/0.1627, allocations: 180.1 kB / 0.5581 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1643, allocations: 0.8465 MB / 0.5589 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.1645, allocations: 204.8 kB / 0.5591 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.1647, allocations: 99.94 kB / 0.5592 GB, free: 264 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.1673, allocations: 1.469 MB / 0.5607 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.732e-05/0.1673, allocations: 3.953 kB / 0.5607 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.1675, allocations: 51.98 kB / 0.5607 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/0.1676, allocations: 73.97 kB / 0.5608 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002422/0.1701, allocations: 1.272 MB / 0.562 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008298/0.1784, allocations: 5.189 MB / 0.5671 GB, free: 7.957 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.1801, allocations: 0.9679 MB / 0.568 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008563/0.1809, allocations: 472.1 kB / 0.5685 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.73e-05/0.181, allocations: 9.188 kB / 0.5685 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.111e-05/0.181, allocations: 47.06 kB / 0.5686 GB, free: 6.395 MB / 430.1 MB Notification: Performance of pre-optimization done (n=74): time 2.986e-06/0.1811, allocations: 4 kB / 0.5686 GB, free: 6.391 MB / 430.1 MB Notification: Performance of matching and sorting (n=78): time 0.007041/0.1881, allocations: 3.097 MB / 0.5716 GB, free: 3.223 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.79e-05/0.1882, allocations: 115.4 kB / 0.5717 GB, free: 3.086 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.1892, allocations: 0.6876 MB / 0.5724 GB, free: 2.391 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.1893, allocations: 33.7 kB / 0.5724 GB, free: 2.352 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004593/0.1897, allocations: 0.4924 MB / 0.5729 GB, free: 1.852 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.1901, allocations: 281.6 kB / 0.5731 GB, free: 1.574 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003686/0.1905, allocations: 186.6 kB / 0.5733 GB, free: 1.383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.1907, allocations: 394.7 kB / 0.5737 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007781/0.1915, allocations: 437.8 kB / 0.5741 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.1925, allocations: 0.7242 MB / 0.5748 GB, free: 15.71 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.006285/0.1988, allocations: 2.583 MB / 0.5773 GB, free: 12.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.1988, allocations: 4 kB / 0.5773 GB, free: 12.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002533/0.2013, allocations: 1.312 MB / 0.5786 GB, free: 11.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.2014, allocations: 11.94 kB / 0.5786 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.2014, allocations: 8.656 kB / 0.5787 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002804/0.2017, allocations: 89.66 kB / 0.5787 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009044/0.2026, allocations: 227.6 kB / 0.579 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.2039, allocations: 1.446 MB / 0.5804 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007312/0.2047, allocations: 75.88 kB / 0.5804 GB, free: 9.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.752e-05/0.2047, allocations: 43.98 kB / 0.5805 GB, free: 9.617 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.0006658/0.2054, allocations: 416.4 kB / 0.5809 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.2056, allocations: 87.44 kB / 0.581 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.2075, allocations: 0.9862 MB / 0.5819 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.2075, allocations: 15.94 kB / 0.5819 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2075, allocations: 4 kB / 0.5819 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.2076, allocations: 7.984 kB / 0.5819 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.2116, allocations: 2.269 MB / 0.5842 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.2116, allocations: 0 / 0.5842 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007968/0.2124, allocations: 139.8 kB / 0.5843 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.2125, allocations: 24.84 kB / 0.5843 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.2126, allocations: 19.98 kB / 0.5843 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.2138, allocations: 1.382 MB / 0.5857 GB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2138, allocations: 4.031 kB / 0.5857 GB, free: 4.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.2165, allocations: 1.651 MB / 0.5873 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004681/0.217, allocations: 252.5 kB / 0.5875 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.2171, allocations: 20 kB / 0.5876 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005301/0.2176, allocations: 47.94 kB / 0.5876 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.2178, allocations: 56.48 kB / 0.5877 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.088e-05/0.2179, allocations: 19.98 kB / 0.5877 GB, free: 1.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007104/0.2186, allocations: 487 kB / 0.5882 GB, free: 1.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2186, allocations: 0 / 0.5882 GB, free: 1.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001041/0.2196, allocations: 267.8 kB / 0.5884 GB, free: 1.219 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.2743/0.4939, allocations: 2.246 MB / 0.5906 GB, free: 49.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.4961, allocations: 1.185 MB / 0.5918 GB, free: 49.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4961, allocations: 0 / 0.5918 GB, free: 49.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.4971, allocations: 0.579 MB / 0.5923 GB, free: 49.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.4987, allocations: 230.8 kB / 0.5925 GB, free: 49.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.5151, allocations: 9.034 MB / 0.6014 GB, free: 44.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.5163, allocations: 1.163 MB / 0.6025 GB, free: 44.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009884/0.5173, allocations: 253.8 kB / 0.6027 GB, free: 44.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005005/0.5178, allocations: 348.8 kB / 0.6031 GB, free: 43.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5178, allocations: 0 / 0.6031 GB, free: 43.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05271/0.5705, allocations: 21.08 MB / 0.6237 GB, free: 32.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.06, allocations: 0 / 0.6237 GB, free: 32.08 MB / 446.1 MB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_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.00115518 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.256497252266854] Failed to read output from testmodel.py, exit status != 0: 15.156078001949936 15.166444584 15.005829047 Calling exit ...