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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 124.7 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.1983/0.1983, allocations: 38.51 MB / 342.5 MB, free: 8.02 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001987/0.001987, allocations: 71.33 kB / 478.6 MB, free: 33.47 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1157, allocations: 61.24 MB / 0.5272 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01/0.1257, allocations: 7.157 MB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005212/0.1309, allocations: 2.867 MB / 0.537 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000647/0.1316, allocations: 27.88 kB / 0.537 GB, free: 7.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.133, allocations: 373.9 kB / 0.5374 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002274/0.1353, allocations: 0.8011 MB / 0.5382 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008986/0.1362, allocations: 307.5 kB / 0.5385 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002306/0.1385, allocations: 1.57 MB / 0.54 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.1403, allocations: 1.234 MB / 0.5412 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.1415, allocations: 0.6658 MB / 0.5418 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001222/0.1427, allocations: 0.7827 MB / 0.5426 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002544/0.143, allocations: 140 kB / 0.5427 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.1443, allocations: 0.7138 MB / 0.5434 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.1449, allocations: 0.5065 MB / 0.5439 GB, free: 176 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009011/0.1458, allocations: 0.6653 MB / 0.5446 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002898/0.1487, allocations: 2.118 MB / 0.5467 GB, free: 13.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1487, allocations: 0 / 0.5467 GB, free: 13.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1487, allocations: 0 / 0.5467 GB, free: 13.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.678e-05/0.1487, allocations: 0 / 0.5467 GB, free: 13.38 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.003723/0.1525, allocations: 1.58 MB / 0.5482 GB, free: 11.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1525, allocations: 11.89 kB / 0.5482 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.1527, allocations: 172.9 kB / 0.5484 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006966/0.1534, allocations: 176.1 kB / 0.5485 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.1552, allocations: 0.8387 MB / 0.5494 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002365/0.1555, allocations: 204.7 kB / 0.5496 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.1557, allocations: 104 kB / 0.5497 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.1583, allocations: 1.465 MB / 0.5511 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.1584, allocations: 7.938 kB / 0.5511 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.1585, allocations: 43.98 kB / 0.5511 GB, free: 8.598 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/0.1586, allocations: 73.97 kB / 0.5512 GB, free: 8.523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/0.161, allocations: 1.269 MB / 0.5524 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008303/0.1693, allocations: 5.197 MB / 0.5575 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.171, allocations: 0.9799 MB / 0.5585 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008461/0.1718, allocations: 460.3 kB / 0.5589 GB, free: 388 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.1718, allocations: 8.562 kB / 0.5589 GB, free: 380 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.579e-05/0.1719, allocations: 51.06 kB / 0.559 GB, free: 320 kB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.066e-06/0.1719, allocations: 0 / 0.559 GB, free: 320 kB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006613/0.1785, allocations: 3.094 MB / 0.562 GB, free: 13.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.1786, allocations: 115.4 kB / 0.5621 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009528/0.1795, allocations: 0.6916 MB / 0.5628 GB, free: 12.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.399e-05/0.1796, allocations: 33.7 kB / 0.5628 GB, free: 12.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000392/0.18, allocations: 496.2 kB / 0.5633 GB, free: 11.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.1803, allocations: 277.6 kB / 0.5635 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.1806, allocations: 194.5 kB / 0.5637 GB, free: 11.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002281/0.1808, allocations: 398.6 kB / 0.5641 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007791/0.1816, allocations: 437.8 kB / 0.5645 GB, free: 10.49 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.1826, allocations: 0.7246 MB / 0.5652 GB, free: 9.645 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.005938/0.1886, allocations: 2.571 MB / 0.5677 GB, free: 6.938 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-06/0.1886, allocations: 8 kB / 0.5678 GB, free: 6.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002532/0.1911, allocations: 1.313 MB / 0.569 GB, free: 5.605 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.1911, allocations: 15.97 kB / 0.5691 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.1912, allocations: 8 kB / 0.5691 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002699/0.1914, allocations: 89.61 kB / 0.5691 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/0.1923, allocations: 215.7 kB / 0.5694 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.1937, allocations: 1.45 MB / 0.5708 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007274/0.1944, allocations: 83.88 kB / 0.5708 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.069e-05/0.1945, allocations: 36 kB / 0.5709 GB, free: 3.566 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.0006564/0.1951, allocations: 422.8 kB / 0.5713 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.1953, allocations: 83.48 kB / 0.5714 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.1972, allocations: 0.9861 MB / 0.5723 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/0.1973, allocations: 15.94 kB / 0.5723 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1973, allocations: 3.984 kB / 0.5723 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1973, allocations: 4 kB / 0.5723 GB, free: 2.027 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.2016, allocations: 2.269 MB / 0.5746 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2016, allocations: 0 / 0.5746 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.2024, allocations: 143.8 kB / 0.5747 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.2025, allocations: 20.86 kB / 0.5747 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-05/0.2025, allocations: 24.02 kB / 0.5747 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.2039, allocations: 1.39 MB / 0.5761 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2039, allocations: 0 / 0.5761 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/0.2067, allocations: 1.655 MB / 0.5777 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.2072, allocations: 248.5 kB / 0.578 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.2073, allocations: 16.06 kB / 0.578 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004995/0.2078, allocations: 47.94 kB / 0.578 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.208, allocations: 56.47 kB / 0.5781 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.208, allocations: 24 kB / 0.5781 GB, free: 11.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006837/0.2087, allocations: 487 kB / 0.5786 GB, free: 11.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2087, allocations: 0 / 0.5786 GB, free: 11.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001036/0.2098, allocations: 255.9 kB / 0.5788 GB, free: 11.17 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.00337/0.2131, allocations: 2.253 MB / 0.581 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002216/0.2153, allocations: 1.191 MB / 0.5822 GB, free: 7.652 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2153, allocations: 0 / 0.5822 GB, free: 7.652 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.2163, allocations: 0.5841 MB / 0.5827 GB, free: 7.055 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.2175, allocations: 231 kB / 0.583 GB, free: 6.836 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01496/0.2325, allocations: 9.039 MB / 0.5918 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009978/0.2335, allocations: 1.161 MB / 0.5929 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008117/0.2343, allocations: 254.9 kB / 0.5932 GB, free: 11.99 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/0.2349, allocations: 339.3 kB / 0.5935 GB, free: 11.66 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2349, allocations: 0 / 0.5935 GB, free: 11.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2992/0.5341, allocations: 21.05 MB / 0.614 GB, free: 72.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.53, allocations: 5.453 kB / 0.6141 GB, free: 72.69 MB / 462.1 MB " [Timeout remaining time 644] (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.354200307279825] Failed to read output from testmodel.py, exit status != 0: 15.616797493305057 15.628155032 15.476855089 Calling exit ...