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.001288/0.001288, allocations: 79.7 kB / 20.66 MB, free: 3.879 MB / 18.57 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.001114/0.001114, allocations: 170 kB / 23.94 MB, free: 0.6016 MB / 18.57 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 0.8901/0.8901, allocations: 177.2 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2433/0.2433, allocations: 29.4 MB / 290.2 MB, free: 2.438 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 430.3 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.558e-05/1.695e-05, allocations: 2.281 kB / 430.3 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006017/0.006034, allocations: 6.746 MB / 437 MB, free: 6.84 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.009511, allocations: 2.703 MB / 439.7 MB, free: 4.129 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004824/0.009994, allocations: 35.69 kB / 439.8 MB, free: 4.094 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.011, allocations: 373.8 kB / 440.1 MB, free: 3.727 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001673/0.01268, allocations: 0.8122 MB / 440.9 MB, free: 2.91 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.01336, allocations: 319.4 kB / 441.2 MB, free: 2.598 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001799/0.01516, allocations: 1.577 MB / 442.8 MB, free: 1.016 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2007/0.2159, allocations: 1.155 MB / 444 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001061/0.2169, allocations: 0.9161 MB / 444.9 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000583/0.2175, allocations: 0.6809 MB / 445.6 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.2176, allocations: 140.4 kB / 445.7 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006475/0.2183, allocations: 0.7055 MB / 446.4 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.2185, allocations: 0.5078 MB / 446.9 MB, free: 43.82 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.2188, allocations: 471.1 kB / 447.4 MB, free: 43.78 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.2199, allocations: 2.192 MB / 449.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2199, allocations: 0.6562 kB / 449.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2199, allocations: 0 / 449.6 MB, free: 43.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.2199, allocations: 1.031 kB / 449.6 MB, free: 43.66 MB / 410.7 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.001617/0.2215, allocations: 1.507 MB / 451.1 MB, free: 43.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.2216, allocations: 15.55 kB / 451.1 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.2217, allocations: 163.9 kB / 451.3 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003854/0.2221, allocations: 184.6 kB / 451.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008058/0.2229, allocations: 0.7774 MB / 452.2 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.223, allocations: 388.9 kB / 452.6 MB, free: 42.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.2231, allocations: 99.5 kB / 452.7 MB, free: 42.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.2243, allocations: 1.474 MB / 454.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.2243, allocations: 7.141 kB / 454.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.103e-05/0.2244, allocations: 42.88 kB / 454.2 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.781e-05/0.2245, allocations: 73.2 kB / 454.3 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.2256, allocations: 1.272 MB / 455.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/0.2289, allocations: 4.751 MB / 460.3 MB, free: 38.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008487/0.2297, allocations: 0.8092 MB / 461.1 MB, free: 38.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004533/0.2302, allocations: 466.1 kB / 461.6 MB, free: 38.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.2302, allocations: 13.53 kB / 461.6 MB, free: 38.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.2303, allocations: 44.23 kB / 461.6 MB, free: 38.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 2.275e-06/0.2303, allocations: 0 / 461.6 MB, free: 38.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.00329/0.2336, allocations: 2.96 MB / 464.6 MB, free: 36.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.2336, allocations: 113 kB / 464.7 MB, free: 36.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004671/0.2341, allocations: 0.706 MB / 465.4 MB, free: 36.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.2341, allocations: 36.8 kB / 465.4 MB, free: 36.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.2343, allocations: 493.2 kB / 465.9 MB, free: 35.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.2344, allocations: 282.8 kB / 466.2 MB, free: 35.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.2345, allocations: 187.7 kB / 466.4 MB, free: 35.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.2346, allocations: 389.2 kB / 466.8 MB, free: 35.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003821/0.235, allocations: 440.5 kB / 467.2 MB, free: 34.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/0.2354, allocations: 0.7238 MB / 467.9 MB, free: 34.48 MB / 410.7 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.002752/0.2382, allocations: 2.502 MB / 470.4 MB, free: 33.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2382, allocations: 3.281 kB / 470.4 MB, free: 33.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001121/0.2393, allocations: 1.316 MB / 471.7 MB, free: 32.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2393, allocations: 13.22 kB / 471.8 MB, free: 32.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.2393, allocations: 9.469 kB / 471.8 MB, free: 32.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001495/0.2395, allocations: 79.67 kB / 471.8 MB, free: 32.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.2399, allocations: 224.1 kB / 472.1 MB, free: 32.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005314/0.2404, allocations: 1.353 MB / 473.4 MB, free: 31.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.2407, allocations: 79.52 kB / 473.5 MB, free: 31.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.2408, allocations: 43.34 kB / 473.5 MB, free: 31.5 MB / 410.7 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.000302/0.2411, allocations: 414.3 kB / 473.9 MB, free: 31.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-05/0.2412, allocations: 92.27 kB / 474 MB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009065/0.2421, allocations: 0.9776 MB / 475 MB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.2421, allocations: 16.67 kB / 475 MB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2421, allocations: 3.156 kB / 475 MB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2421, allocations: 3.516 kB / 475 MB, free: 30.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.2441, allocations: 2.088 MB / 477.1 MB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2441, allocations: 3.031 kB / 477.1 MB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.2444, allocations: 147.1 kB / 477.3 MB, free: 29.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.466e-05/0.2445, allocations: 24.2 kB / 477.3 MB, free: 29.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.2445, allocations: 14.03 kB / 477.3 MB, free: 29.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003861/0.2449, allocations: 1.281 MB / 478.6 MB, free: 28.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2449, allocations: 0 / 478.6 MB, free: 28.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.2462, allocations: 1.646 MB / 480.2 MB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.2464, allocations: 177.5 kB / 480.4 MB, free: 27.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.2464, allocations: 27.88 kB / 480.4 MB, free: 27.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.2467, allocations: 42.19 kB / 480.5 MB, free: 27.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2468, allocations: 65.52 kB / 480.5 MB, free: 27.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.2468, allocations: 16.84 kB / 480.5 MB, free: 27.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000411/0.2472, allocations: 488.2 kB / 481 MB, free: 27.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2472, allocations: 0 / 481 MB, free: 27.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006365/0.2479, allocations: 255 kB / 481.3 MB, free: 27.34 MB / 410.7 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.001803/0.2497, allocations: 2.252 MB / 483.5 MB, free: 25.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.2509, allocations: 1.115 MB / 484.6 MB, free: 25.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2509, allocations: 1.156 kB / 484.6 MB, free: 25.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.2514, allocations: 0.5734 MB / 485.2 MB, free: 25.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006995/0.2521, allocations: 238.5 kB / 485.4 MB, free: 25.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.2613, allocations: 8.901 MB / 494.3 MB, free: 20.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.2618, allocations: 0.5646 MB / 494.9 MB, free: 20.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005312/0.2623, allocations: 247.4 kB / 495.2 MB, free: 20.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/0.2626, allocations: 351.9 kB / 495.5 MB, free: 19.98 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.2626, allocations: 0 / 495.5 MB, free: 19.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.296, allocations: 22.51 MB / 0.5059 GB, free: 9.238 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.329/7.625, allocations: 6.719 kB / 0.5059 GB, free: 9.238 MB / 410.7 MB " [Timeout remaining time 652] (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 sys.exit(0), Time elapsed: 10.061657908838242] Failed to read output from testmodel.py, exit status != 0: 7.715103366412222 7.723652198 7.501996602 Calling exit ...