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.0007776/0.0007776, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.001037/0.001037, allocations: 170 kB / 23.95 MB, free: 0.6133 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.886/0.886, allocations: 177.1 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.2149/0.2149, allocations: 29.41 MB / 290.1 MB, free: 2.457 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.754e-06/1.754e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.471e-05/1.646e-05, allocations: 2.281 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006279/0.006295, allocations: 6.746 MB / 436.9 MB, free: 6.824 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003523/0.009818, allocations: 2.711 MB / 439.7 MB, free: 4.105 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004833/0.0103, allocations: 35.69 kB / 439.7 MB, free: 4.07 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009387/0.01124, allocations: 373.8 kB / 440.1 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.01258, allocations: 0.8199 MB / 440.9 MB, free: 2.879 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.01308, allocations: 331.2 kB / 441.2 MB, free: 2.555 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.01444, allocations: 1.608 MB / 442.8 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1526/0.1671, allocations: 1.149 MB / 444 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.1681, allocations: 0.9235 MB / 444.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005663/0.1687, allocations: 0.6879 MB / 445.6 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.886e-05/0.1688, allocations: 140.6 kB / 445.7 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006894/0.1695, allocations: 0.7065 MB / 446.4 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002637/0.1697, allocations: 0.524 MB / 446.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002668/0.17, allocations: 470.5 kB / 447.4 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.1711, allocations: 2.186 MB / 449.6 MB, free: 43.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1711, allocations: 3.344 kB / 449.6 MB, free: 43.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1711, allocations: 0 / 449.6 MB, free: 43.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1711, allocations: 3.281 kB / 449.6 MB, free: 43.27 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.00161/0.1728, allocations: 1.489 MB / 451.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1728, allocations: 13.58 kB / 451.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000126/0.1729, allocations: 168.6 kB / 451.3 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003896/0.1733, allocations: 188.4 kB / 451.4 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007641/0.1741, allocations: 0.7839 MB / 452.2 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.1742, allocations: 383.9 kB / 452.6 MB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1743, allocations: 99.75 kB / 452.7 MB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.1755, allocations: 1.478 MB / 454.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.1755, allocations: 10.52 kB / 454.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.813e-05/0.1756, allocations: 43.22 kB / 454.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.52e-05/0.1756, allocations: 73.86 kB / 454.3 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.1767, allocations: 1.262 MB / 455.6 MB, free: 41.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.18, allocations: 4.761 MB / 460.3 MB, free: 38.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007798/0.1808, allocations: 0.8099 MB / 461.1 MB, free: 38.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.1812, allocations: 461.8 kB / 461.6 MB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.1813, allocations: 10.66 kB / 461.6 MB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.554e-05/0.1813, allocations: 46.08 kB / 461.6 MB, free: 37.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 1.954e-06/0.1813, allocations: 0 / 461.6 MB, free: 37.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.003104/0.1844, allocations: 2.96 MB / 464.6 MB, free: 36.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.1844, allocations: 113.5 kB / 464.7 MB, free: 36.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004361/0.1849, allocations: 0.7028 MB / 465.4 MB, free: 36.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1849, allocations: 36.92 kB / 465.4 MB, free: 36.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.185, allocations: 492.7 kB / 465.9 MB, free: 35.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.1851, allocations: 281.1 kB / 466.2 MB, free: 35.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.1853, allocations: 184 kB / 466.4 MB, free: 35.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.078e-05/0.1853, allocations: 393.9 kB / 466.8 MB, free: 35.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.1857, allocations: 442.7 kB / 467.2 MB, free: 34.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004443/0.1862, allocations: 0.711 MB / 467.9 MB, free: 34.38 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.002756/0.1889, allocations: 2.508 MB / 470.4 MB, free: 33.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1889, allocations: 0 / 470.4 MB, free: 33.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00111/0.19, allocations: 1.32 MB / 471.7 MB, free: 32.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.1901, allocations: 8.75 kB / 471.7 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1901, allocations: 9.844 kB / 471.8 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/0.1902, allocations: 88.2 kB / 471.8 MB, free: 32.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.1906, allocations: 222 kB / 472.1 MB, free: 32.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005188/0.1911, allocations: 1.343 MB / 473.4 MB, free: 31.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.1915, allocations: 78.38 kB / 473.5 MB, free: 31.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.1915, allocations: 39.84 kB / 473.5 MB, free: 31.39 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.0002898/0.1918, allocations: 422.1 kB / 473.9 MB, free: 31.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1919, allocations: 88.19 kB / 474 MB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008673/0.1927, allocations: 0.9811 MB / 475 MB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.1927, allocations: 16.66 kB / 475 MB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1927, allocations: 7.062 kB / 475 MB, free: 30.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1928, allocations: 4.312 kB / 475 MB, free: 30.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/0.1946, allocations: 2.087 MB / 477.1 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1946, allocations: 0 / 477.1 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.195, allocations: 143.6 kB / 477.3 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.912e-05/0.195, allocations: 27.33 kB / 477.3 MB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.1951, allocations: 17.81 kB / 477.3 MB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003679/0.1954, allocations: 1.28 MB / 478.6 MB, free: 28.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1954, allocations: 0 / 478.6 MB, free: 28.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.1966, allocations: 1.653 MB / 480.2 MB, free: 27.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.1968, allocations: 173.4 kB / 480.4 MB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.1969, allocations: 20.81 kB / 480.4 MB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.1972, allocations: 42.91 kB / 480.5 MB, free: 27.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.1973, allocations: 65.58 kB / 480.5 MB, free: 27.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.1973, allocations: 23.7 kB / 480.5 MB, free: 27.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003526/0.1976, allocations: 480.8 kB / 481 MB, free: 27.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1976, allocations: 1.125 kB / 481 MB, free: 27.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006027/0.1982, allocations: 258 kB / 481.3 MB, free: 27.23 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.001766/0.2, allocations: 2.259 MB / 483.5 MB, free: 25.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.2012, allocations: 1.115 MB / 484.6 MB, free: 25.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2012, allocations: 1.125 kB / 484.6 MB, free: 25.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.2017, allocations: 0.5792 MB / 485.2 MB, free: 25.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000645/0.2024, allocations: 230.9 kB / 485.5 MB, free: 25.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00817/0.2106, allocations: 8.896 MB / 494.3 MB, free: 20.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.211, allocations: 0.561 MB / 494.9 MB, free: 20.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004754/0.2115, allocations: 255.8 kB / 495.2 MB, free: 20.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.2118, allocations: 350.8 kB / 495.5 MB, free: 19.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2118, allocations: 0 / 495.5 MB, free: 19.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.2457, allocations: 22.43 MB / 0.5058 GB, free: 9.242 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.444, allocations: 4.062 kB / 0.5058 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 & /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 sys.exit(0), Time elapsed: 9.429947829805315] Failed to read output from testmodel.py, exit status != 0: 7.537579849362373 7.545086109 7.371827809 Calling exit ...