Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001318/0.001318, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001429/0.001429, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.488/1.488, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.1959/0.1959, allocations: 38.5 MB / 348.7 MB, free: 2.59 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.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.002716/0.002716, allocations: 67.91 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1428, allocations: 62.41 MB / 0.5367 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007583/0.1504, allocations: 5.246 MB / 0.5418 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003469/0.1539, allocations: 2.157 MB / 0.5439 GB, free: 132 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002933/0.1542, allocations: 19.88 kB / 0.5439 GB, free: 112 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005241/0.1547, allocations: 154.8 kB / 0.5441 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009907/0.1557, allocations: 409.6 kB / 0.5444 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.1562, allocations: 219.5 kB / 0.5447 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009506/0.1572, allocations: 0.7045 MB / 0.5453 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004677/0.1576, allocations: 375.3 kB / 0.5457 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004687/0.1581, allocations: 318.8 kB / 0.546 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004419/0.1585, allocations: 298.7 kB / 0.5463 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.1586, allocations: 52 kB / 0.5463 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.1589, allocations: 147.9 kB / 0.5465 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.159, allocations: 151.5 kB / 0.5466 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002775/0.1593, allocations: 278.6 kB / 0.5469 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008441/0.1602, allocations: 0.6887 MB / 0.5476 GB, free: 12.35 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1602, allocations: 4 kB / 0.5476 GB, free: 12.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1602, allocations: 0 / 0.5476 GB, free: 12.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1602, allocations: 3.938 kB / 0.5476 GB, free: 12.34 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001645/0.1618, allocations: 0.8733 MB / 0.5484 GB, free: 11.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1619, allocations: 12.02 kB / 0.5484 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.162, allocations: 74.72 kB / 0.5485 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.1621, allocations: 60.56 kB / 0.5486 GB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008498/0.1629, allocations: 0.4905 MB / 0.549 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.163, allocations: 25 kB / 0.5491 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.16e-05/0.163, allocations: 39.95 kB / 0.5491 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000723/0.1637, allocations: 461.1 kB / 0.5495 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1638, allocations: 3.938 kB / 0.5496 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/0.1638, allocations: 16 kB / 0.5496 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1638, allocations: 8 kB / 0.5496 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005049/0.1643, allocations: 282.3 kB / 0.5498 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.1667, allocations: 1.859 MB / 0.5517 GB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.1672, allocations: 250.2 kB / 0.5519 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.1674, allocations: 79.05 kB / 0.552 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.1674, allocations: 7.938 kB / 0.552 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.1677, allocations: 165.9 kB / 0.5521 GB, free: 7.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1677, allocations: 7.938 kB / 0.5521 GB, free: 7.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.001824/0.1695, allocations: 0.9322 MB / 0.5531 GB, free: 6.363 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.103e-05/0.1696, allocations: 132.5 kB / 0.5532 GB, free: 6.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/0.1701, allocations: 418.2 kB / 0.5536 GB, free: 5.793 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.1702, allocations: 33.7 kB / 0.5536 GB, free: 5.754 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.1704, allocations: 272.1 kB / 0.5539 GB, free: 5.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.1705, allocations: 99.3 kB / 0.554 GB, free: 5.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.1706, allocations: 69.64 kB / 0.554 GB, free: 5.309 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1708, allocations: 354.8 kB / 0.5544 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.171, allocations: 87.89 kB / 0.5545 GB, free: 4.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.1713, allocations: 212.2 kB / 0.5547 GB, free: 4.602 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004518/0.1717, allocations: 315.7 kB / 0.555 GB, free: 4.238 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1717, allocations: 8 kB / 0.555 GB, free: 4.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009033/0.1726, allocations: 429.9 kB / 0.5554 GB, free: 3.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1726, allocations: 8 kB / 0.5554 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.1727, allocations: 4 kB / 0.5554 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/0.1731, allocations: 96.75 kB / 0.5555 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.1733, allocations: 63.91 kB / 0.5555 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/0.176, allocations: 2.014 MB / 0.5575 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.1763, allocations: 24.05 kB / 0.5575 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.1764, allocations: 19.94 kB / 0.5576 GB, free: 1.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002554/0.1766, allocations: 193.6 kB / 0.5577 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/0.1767, allocations: 51.66 kB / 0.5578 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006664/0.1774, allocations: 298.1 kB / 0.5581 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.1774, allocations: 4 kB / 0.5581 GB, free: 0.875 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1774, allocations: 4 kB / 0.5581 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1774, allocations: 0 / 0.5581 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.1786, allocations: 0.7728 MB / 0.5588 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1786, allocations: 3.984 kB / 0.5588 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.1789, allocations: 47.91 kB / 0.5589 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002276/0.1791, allocations: 52.81 kB / 0.5589 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1791, allocations: 4 kB / 0.5589 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.1809, allocations: 1.551 MB / 0.5604 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1809, allocations: 3.938 kB / 0.5605 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008887/0.1818, allocations: 0.5026 MB / 0.5609 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.1819, allocations: 136.8 kB / 0.5611 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.182, allocations: 8 kB / 0.5611 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.1822, allocations: 15.98 kB / 0.5611 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.1823, allocations: 23.91 kB / 0.5611 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.1823, allocations: 11.94 kB / 0.5611 GB, free: 13.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000392/0.1827, allocations: 291.1 kB / 0.5614 GB, free: 13.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1827, allocations: 0 / 0.5614 GB, free: 13.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005652/0.1833, allocations: 127.9 kB / 0.5615 GB, free: 13.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002612/0.1859, allocations: 1.367 MB / 0.5629 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000965/0.1868, allocations: 399 kB / 0.5632 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1868, allocations: 0 / 0.5632 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004274/0.1873, allocations: 238.5 kB / 0.5635 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/0.188, allocations: 128.6 kB / 0.5636 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006527/0.1945, allocations: 4.099 MB / 0.5676 GB, free: 6.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.1951, allocations: 0.8582 MB / 0.5684 GB, free: 5.883 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002825/0.1954, allocations: 67.34 kB / 0.5685 GB, free: 5.816 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.1956, allocations: 163.4 kB / 0.5687 GB, free: 5.656 MB / 430.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1956, allocations: 0 / 0.5687 GB, free: 5.656 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.2422, allocations: 11.52 MB / 0.5799 GB, free: 10.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.38, allocations: 16.33 kB / 0.5799 GB, free: 10.2 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.816264411012526] Failed to read output from testmodel.py, exit status != 0: 13.54171992999909 13.788173008 13.624875058 Calling exit ...