Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.001335/0.001335, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001423/0.001423, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.545/1.545, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.1881/0.1881, allocations: 38.51 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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.002019/0.002019, allocations: 71.84 kB / 487.1 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.136, allocations: 62.43 MB / 0.5367 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01017/0.1462, allocations: 5.772 MB / 0.5423 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005032/0.1512, allocations: 2.309 MB / 0.5446 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006288/0.1519, allocations: 23.81 kB / 0.5446 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007949/0.1527, allocations: 178.7 kB / 0.5448 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00145/0.1541, allocations: 469.5 kB / 0.5452 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007952/0.1549, allocations: 239.5 kB / 0.5454 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.1566, allocations: 0.8681 MB / 0.5463 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006561/0.1573, allocations: 420.8 kB / 0.5467 GB, free: 13.24 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006269/0.1579, allocations: 378.5 kB / 0.547 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005582/0.1585, allocations: 354.6 kB / 0.5474 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.195e-05/0.1586, allocations: 56 kB / 0.5474 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003434/0.1589, allocations: 155.9 kB / 0.5476 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003081/0.1592, allocations: 179.5 kB / 0.5478 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.1596, allocations: 310.5 kB / 0.548 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.1608, allocations: 0.7899 MB / 0.5488 GB, free: 11.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1608, allocations: 0 / 0.5488 GB, free: 11.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1608, allocations: 0 / 0.5488 GB, free: 11.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.1609, allocations: 7.938 kB / 0.5488 GB, free: 11.04 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002088/0.1629, allocations: 0.9245 MB / 0.5497 GB, free: 10.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.163, allocations: 16.03 kB / 0.5497 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.1631, allocations: 90.69 kB / 0.5498 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.1633, allocations: 64.52 kB / 0.5499 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.1643, allocations: 0.5295 MB / 0.5504 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.1644, allocations: 36.94 kB / 0.5504 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.1645, allocations: 43.95 kB / 0.5505 GB, free: 9.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009453/0.1655, allocations: 0.5251 MB / 0.551 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.1655, allocations: 0 / 0.551 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.1655, allocations: 16 kB / 0.551 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.642e-05/0.1656, allocations: 17 kB / 0.551 GB, free: 8.633 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006222/0.1662, allocations: 339.7 kB / 0.5514 GB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003098/0.1693, allocations: 2.074 MB / 0.5534 GB, free: 6.109 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006286/0.17, allocations: 218.3 kB / 0.5536 GB, free: 5.871 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1701, allocations: 78.67 kB / 0.5537 GB, free: 5.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.1701, allocations: 4 kB / 0.5537 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.1705, allocations: 169.8 kB / 0.5538 GB, free: 5.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.1705, allocations: 0 / 0.5538 GB, free: 5.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.001877/0.1724, allocations: 0.9446 MB / 0.5548 GB, free: 4.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1725, allocations: 132.5 kB / 0.5549 GB, free: 4.434 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.1732, allocations: 449.8 kB / 0.5553 GB, free: 3.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.1732, allocations: 25.7 kB / 0.5553 GB, free: 3.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.1735, allocations: 304.2 kB / 0.5556 GB, free: 3.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.263e-05/0.1736, allocations: 95.44 kB / 0.5557 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.1738, allocations: 78.08 kB / 0.5558 GB, free: 3.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003414/0.1741, allocations: 366.7 kB / 0.5561 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1743, allocations: 88.83 kB / 0.5562 GB, free: 3.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.1746, allocations: 221.4 kB / 0.5564 GB, free: 2.746 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.1751, allocations: 320 kB / 0.5567 GB, free: 2.375 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1751, allocations: 0 / 0.5567 GB, free: 2.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001094/0.1762, allocations: 449.5 kB / 0.5572 GB, free: 1.926 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.1762, allocations: 4.562 kB / 0.5572 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1762, allocations: 8 kB / 0.5572 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004497/0.1767, allocations: 96.77 kB / 0.5573 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.1769, allocations: 71.84 kB / 0.5573 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/0.1793, allocations: 1.825 MB / 0.5591 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.1796, allocations: 20 kB / 0.5591 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.1796, allocations: 19.98 kB / 0.5592 GB, free: 15.74 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003148/0.1799, allocations: 209.6 kB / 0.5594 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/0.18, allocations: 59.61 kB / 0.5594 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006258/0.1806, allocations: 281 kB / 0.5597 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1806, allocations: 4 kB / 0.5597 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1806, allocations: 4 kB / 0.5597 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1807, allocations: 0 / 0.5597 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.182, allocations: 0.78 MB / 0.5605 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.182, allocations: 3.938 kB / 0.5605 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/0.1823, allocations: 43.98 kB / 0.5605 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002246/0.1825, allocations: 52.8 kB / 0.5606 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.1825, allocations: 8 kB / 0.5606 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.1843, allocations: 1.539 MB / 0.5621 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.1843, allocations: 4.266 kB / 0.5621 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008326/0.1851, allocations: 485.5 kB / 0.5625 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.1853, allocations: 140.8 kB / 0.5627 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.067e-05/0.1853, allocations: 4 kB / 0.5627 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.1856, allocations: 15.98 kB / 0.5627 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.1856, allocations: 27.84 kB / 0.5627 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1857, allocations: 8 kB / 0.5627 GB, free: 11.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000422/0.1861, allocations: 315.1 kB / 0.563 GB, free: 11.53 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1861, allocations: 0 / 0.563 GB, free: 11.53 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006028/0.1867, allocations: 131.9 kB / 0.5631 GB, free: 11.4 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002828/0.1895, allocations: 1.344 MB / 0.5645 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009058/0.1904, allocations: 390.6 kB / 0.5648 GB, free: 9.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1904, allocations: 0 / 0.5648 GB, free: 9.789 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.1908, allocations: 235.4 kB / 0.5651 GB, free: 9.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/0.1916, allocations: 133.8 kB / 0.5652 GB, free: 9.418 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007773/0.1994, allocations: 4.301 MB / 0.5694 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008202/0.2002, allocations: 0.8777 MB / 0.5702 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004171/0.2006, allocations: 68.17 kB / 0.5703 GB, free: 3.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.201, allocations: 179.4 kB / 0.5705 GB, free: 3.754 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.201, allocations: 0 / 0.5705 GB, free: 3.754 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06376/0.2648, allocations: 12.09 MB / 0.5823 GB, free: 7.754 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.11, allocations: 14.28 kB / 0.5823 GB, free: 7.742 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_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_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.46779161800805] Failed to read output from testmodel.py, exit status != 0: 13.271412925998447 13.518935257 13.35458815 Calling exit ...