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.001316/0.001316, allocations: 111.8 kB / 20.43 MB, free: 1.473 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.002363/0.002363, allocations: 214 kB / 23.74 MB, free: 4.688 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1841/0.1841, allocations: 38.52 MB / 352.4 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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.002061/0.002061, allocations: 67.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3265, allocations: 62.47 MB / 0.542 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01001/0.3365, allocations: 7.297 MB / 0.5491 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005495/0.342, allocations: 2.935 MB / 0.552 GB, free: 8.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000631/0.3426, allocations: 38.56 kB / 0.552 GB, free: 8.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.3439, allocations: 388.8 kB / 0.5524 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.3463, allocations: 0.8077 MB / 0.5532 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007868/0.347, allocations: 314.1 kB / 0.5535 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002218/0.3493, allocations: 1.591 MB / 0.555 GB, free: 6.289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.3509, allocations: 1.18 MB / 0.5562 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.3521, allocations: 0.678 MB / 0.5569 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.3533, allocations: 0.7901 MB / 0.5576 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.3535, allocations: 140 kB / 0.5578 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.3549, allocations: 0.745 MB / 0.5585 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005506/0.3554, allocations: 0.5066 MB / 0.559 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000773/0.3562, allocations: 0.6613 MB / 0.5596 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.3588, allocations: 2.118 MB / 0.5617 GB, free: 276 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3588, allocations: 0 / 0.5617 GB, free: 276 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3588, allocations: 0 / 0.5617 GB, free: 276 kB / 398.1 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.3588, allocations: 0 / 0.5617 GB, free: 276 kB / 398.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.003419/0.3622, allocations: 1.509 MB / 0.5632 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3623, allocations: 15.98 kB / 0.5632 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002328/0.3625, allocations: 172.9 kB / 0.5634 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/0.3633, allocations: 176.1 kB / 0.5635 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.3649, allocations: 0.7783 MB / 0.5643 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.3652, allocations: 380.7 kB / 0.5646 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.3654, allocations: 104 kB / 0.5647 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.3678, allocations: 1.469 MB / 0.5662 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.3678, allocations: 11.94 kB / 0.5662 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.3679, allocations: 36 kB / 0.5662 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.3681, allocations: 81.97 kB / 0.5663 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.3704, allocations: 1.269 MB / 0.5675 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008182/0.3785, allocations: 5.11 MB / 0.5725 GB, free: 4.805 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.3801, allocations: 0.8077 MB / 0.5733 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008158/0.381, allocations: 468.3 kB / 0.5738 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.833e-05/0.381, allocations: 12.64 kB / 0.5738 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.546e-05/0.3811, allocations: 51.16 kB / 0.5738 GB, free: 3.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.096e-06/0.3811, allocations: 0 / 0.5738 GB, free: 3.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006519/0.3876, allocations: 2.953 MB / 0.5767 GB, free: 456 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.04e-05/0.3877, allocations: 111.5 kB / 0.5768 GB, free: 320 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009537/0.3886, allocations: 0.6993 MB / 0.5775 GB, free: 15.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.3887, allocations: 41.7 kB / 0.5775 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.3891, allocations: 492.1 kB / 0.578 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.3894, allocations: 281.6 kB / 0.5783 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003016/0.3897, allocations: 186.6 kB / 0.5785 GB, free: 14.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.3899, allocations: 390.7 kB / 0.5788 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007866/0.3907, allocations: 441.8 kB / 0.5793 GB, free: 13.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3917, allocations: 0.7165 MB / 0.58 GB, free: 12.94 MB / 430.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.005858/0.3976, allocations: 2.508 MB / 0.5824 GB, free: 10.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.3976, allocations: 4 kB / 0.5824 GB, free: 10.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002414/0.4, allocations: 1.313 MB / 0.5837 GB, free: 8.984 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.4, allocations: 15.94 kB / 0.5837 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.4001, allocations: 12 kB / 0.5837 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.4003, allocations: 81.66 kB / 0.5838 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009014/0.4012, allocations: 223.6 kB / 0.584 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.4025, allocations: 1.346 MB / 0.5853 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/0.4033, allocations: 75.94 kB / 0.5854 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-05/0.4033, allocations: 43.98 kB / 0.5854 GB, free: 7.066 MB / 430.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.0006832/0.404, allocations: 421.3 kB / 0.5858 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.4043, allocations: 87.44 kB / 0.5859 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.4062, allocations: 0.979 MB / 0.5869 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.541e-05/0.4062, allocations: 23.94 kB / 0.5869 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.4062, allocations: 0 / 0.5869 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4062, allocations: 7.922 kB / 0.5869 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004125/0.4103, allocations: 2.238 MB / 0.5891 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4104, allocations: 4 kB / 0.5891 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007339/0.4111, allocations: 139.8 kB / 0.5892 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.4112, allocations: 24.84 kB / 0.5893 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.726e-05/0.4113, allocations: 24.02 kB / 0.5893 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.4124, allocations: 1.279 MB / 0.5905 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4124, allocations: 0 / 0.5905 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.415, allocations: 1.651 MB / 0.5921 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.4155, allocations: 179.3 kB / 0.5923 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.4156, allocations: 19.98 kB / 0.5923 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004928/0.4161, allocations: 47.95 kB / 0.5924 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.4162, allocations: 60.53 kB / 0.5924 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.4163, allocations: 20 kB / 0.5925 GB, free: 15.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006792/0.4169, allocations: 491 kB / 0.5929 GB, free: 15.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4169, allocations: 0 / 0.5929 GB, free: 15.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001014/0.418, allocations: 255.9 kB / 0.5932 GB, free: 14.92 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.003321/0.4213, allocations: 2.25 MB / 0.5954 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.4236, allocations: 1.112 MB / 0.5964 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4236, allocations: 0 / 0.5964 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009591/0.4246, allocations: 0.5809 MB / 0.597 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.4259, allocations: 236.4 kB / 0.5972 GB, free: 10.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01579/0.4417, allocations: 9.05 MB / 0.6061 GB, free: 1.285 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.4428, allocations: 1.165 MB / 0.6072 GB, free: 96 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007822/0.4435, allocations: 258.9 kB / 0.6075 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005903/0.4441, allocations: 343.3 kB / 0.6078 GB, free: 15.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4441, allocations: 0 / 0.6078 GB, free: 15.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07255/0.5167, allocations: 21.86 MB / 0.6291 GB, free: 9.832 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.06, allocations: 10.05 kB / 0.6291 GB, free: 9.824 MB / 478.1 MB " [Timeout remaining time 644] (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 --stepSize=0.00115518 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.95626101922244] Failed to read output from testmodel.py, exit status != 0: 16.177417557919398 16.191759449 15.829631345 Calling exit ...