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.00135/0.00135, allocations: 118.3 kB / 18.49 MB, free: 4.559 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.00149/0.00149, allocations: 219 kB / 21.46 MB, free: 1.605 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.508/1.508, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.186/0.186, allocations: 38.5 MB / 349.4 MB, free: 2.574 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="cs",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.002206/0.002206, allocations: 67.91 kB / 487.8 MB, free: 22.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1382, allocations: 62.41 MB / 0.5374 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01065/0.1489, allocations: 7.171 MB / 0.5444 GB, free: 320 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006893/0.1558, allocations: 2.913 MB / 0.5472 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009484/0.1567, allocations: 39.69 kB / 0.5472 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.1582, allocations: 381.8 kB / 0.5476 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.1607, allocations: 0.8011 MB / 0.5484 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000895/0.1616, allocations: 303.5 kB / 0.5487 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.1638, allocations: 1.589 MB / 0.5502 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.1655, allocations: 1.226 MB / 0.5514 GB, free: 9.023 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.1665, allocations: 0.6776 MB / 0.5521 GB, free: 8.344 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.1677, allocations: 0.7826 MB / 0.5529 GB, free: 7.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.1679, allocations: 140 kB / 0.553 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.1693, allocations: 0.7216 MB / 0.5537 GB, free: 6.699 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000622/0.1699, allocations: 0.5027 MB / 0.5542 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008145/0.1707, allocations: 0.6535 MB / 0.5548 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002822/0.1736, allocations: 2.13 MB / 0.5569 GB, free: 3.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1736, allocations: 0 / 0.5569 GB, free: 3.402 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.1736, allocations: 4 kB / 0.5569 GB, free: 3.398 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.738e-05/0.1736, allocations: 0 / 0.5569 GB, free: 3.398 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.003634/0.1772, allocations: 1.577 MB / 0.5584 GB, free: 1.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.1773, allocations: 8.031 kB / 0.5585 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.956e-05/0.1773, allocations: 26.19 kB / 0.5585 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002316/0.1776, allocations: 172.9 kB / 0.5586 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007936/0.1784, allocations: 176.1 kB / 0.5588 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.18, allocations: 0.8578 MB / 0.5596 GB, free: 500 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.1802, allocations: 200.8 kB / 0.5598 GB, free: 272 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/0.1804, allocations: 107.9 kB / 0.5599 GB, free: 164 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.1831, allocations: 1.469 MB / 0.5614 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.168e-05/0.1831, allocations: 11.94 kB / 0.5614 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.1832, allocations: 36 kB / 0.5614 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/0.1834, allocations: 73.97 kB / 0.5615 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002495/0.1859, allocations: 1.276 MB / 0.5627 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008382/0.1943, allocations: 5.182 MB / 0.5678 GB, free: 7.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.196, allocations: 0.9695 MB / 0.5687 GB, free: 6.844 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008553/0.1968, allocations: 465.2 kB / 0.5692 GB, free: 6.383 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.839e-05/0.1969, allocations: 12.55 kB / 0.5692 GB, free: 6.371 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.1969, allocations: 43.06 kB / 0.5692 GB, free: 6.316 MB / 430.1 MB Notification: Performance of pre-optimization done (n=74): time 3.166e-06/0.1969, allocations: 3.938 kB / 0.5692 GB, free: 6.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=78): time 0.007204/0.2041, allocations: 3.098 MB / 0.5723 GB, free: 3.145 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.2042, allocations: 115.3 kB / 0.5724 GB, free: 3.008 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.2052, allocations: 0.6876 MB / 0.5731 GB, free: 2.309 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.2053, allocations: 41.7 kB / 0.5731 GB, free: 2.262 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.2057, allocations: 492.1 kB / 0.5736 GB, free: 1.773 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003197/0.2061, allocations: 281.6 kB / 0.5738 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003544/0.2064, allocations: 186.6 kB / 0.574 GB, free: 1.305 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.2067, allocations: 390.7 kB / 0.5744 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007844/0.2074, allocations: 445.8 kB / 0.5748 GB, free: 492 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2085, allocations: 0.7203 MB / 0.5755 GB, free: 15.64 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.006152/0.2146, allocations: 2.59 MB / 0.578 GB, free: 12.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.2146, allocations: 4 kB / 0.578 GB, free: 12.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002558/0.2172, allocations: 1.317 MB / 0.5793 GB, free: 11.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.2172, allocations: 11.94 kB / 0.5793 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.2172, allocations: 8 kB / 0.5794 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.2176, allocations: 81.67 kB / 0.5794 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009145/0.2185, allocations: 223.9 kB / 0.5796 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.2199, allocations: 1.45 MB / 0.5811 GB, free: 9.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008018/0.2207, allocations: 79.94 kB / 0.5811 GB, free: 9.574 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.92e-05/0.2208, allocations: 39.94 kB / 0.5812 GB, free: 9.535 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.0006775/0.2215, allocations: 417.3 kB / 0.5816 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.2217, allocations: 95.38 kB / 0.5817 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.2236, allocations: 0.9821 MB / 0.5826 GB, free: 8.027 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/0.2236, allocations: 19.94 kB / 0.5826 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2236, allocations: 4 kB / 0.5826 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.2237, allocations: 3.984 kB / 0.5826 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.2278, allocations: 2.265 MB / 0.5849 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2278, allocations: 0 / 0.5849 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007695/0.2285, allocations: 147.8 kB / 0.585 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.2286, allocations: 24.89 kB / 0.585 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.667e-05/0.2287, allocations: 19.98 kB / 0.585 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.2298, allocations: 1.382 MB / 0.5864 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2298, allocations: 0 / 0.5864 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.2326, allocations: 1.662 MB / 0.588 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004358/0.233, allocations: 244.5 kB / 0.5882 GB, free: 2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2331, allocations: 16 kB / 0.5883 GB, free: 1.984 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.2336, allocations: 51.94 kB / 0.5883 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.2338, allocations: 64.47 kB / 0.5884 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.344e-05/0.2339, allocations: 19.94 kB / 0.5884 GB, free: 1.852 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006619/0.2345, allocations: 487 kB / 0.5889 GB, free: 1.379 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2345, allocations: 0 / 0.5889 GB, free: 1.379 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001032/0.2356, allocations: 267.8 kB / 0.5891 GB, free: 1.117 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.2832/0.5188, allocations: 2.234 MB / 0.5913 GB, free: 49.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.5209, allocations: 1.189 MB / 0.5925 GB, free: 49.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5209, allocations: 1.062 kB / 0.5925 GB, free: 49.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008586/0.5217, allocations: 0.5818 MB / 0.593 GB, free: 49.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.5229, allocations: 227.5 kB / 0.5932 GB, free: 49.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.537, allocations: 9.038 MB / 0.6021 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009453/0.538, allocations: 1.163 MB / 0.6032 GB, free: 43.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008909/0.5389, allocations: 249.4 kB / 0.6034 GB, free: 43.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004642/0.5393, allocations: 345.1 kB / 0.6038 GB, free: 43.49 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5393, allocations: 0 / 0.6038 GB, free: 43.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04933/0.5887, allocations: 21.09 MB / 0.6244 GB, free: 31.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.22, allocations: 11.98 kB / 0.6244 GB, free: 31.69 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-05 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.147974296996836] Failed to read output from testmodel.py, exit status != 0: 15.368019401968922 15.377275203 15.201429296 Calling exit ...