Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.001536/0.001536, allocations: 124.5 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.001918/0.001918, allocations: 207.2 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.6/1.6, 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.1971/0.1971, allocations: 38.51 MB / 348.7 MB, free: 2.586 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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.001964/0.001964, allocations: 75.88 kB / 487.1 MB, free: 22.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1225, allocations: 62.4 MB / 0.5367 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008737/0.1313, allocations: 6.404 MB / 0.5429 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00447/0.1357, allocations: 2.727 MB / 0.5456 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004594/0.1362, allocations: 39.69 kB / 0.5456 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.1373, allocations: 342 kB / 0.5459 GB, free: 14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00131/0.1386, allocations: 0.5831 MB / 0.5465 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.1393, allocations: 291.5 kB / 0.5468 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.1408, allocations: 1.215 MB / 0.548 GB, free: 11.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009625/0.1417, allocations: 0.7597 MB / 0.5487 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006507/0.1424, allocations: 0.4983 MB / 0.5492 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007804/0.1432, allocations: 0.5644 MB / 0.5498 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.1433, allocations: 84 kB / 0.5498 GB, free: 9.996 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005486/0.1438, allocations: 351.5 kB / 0.5502 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003546/0.1442, allocations: 335.1 kB / 0.5505 GB, free: 9.324 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000454/0.1446, allocations: 458 kB / 0.5509 GB, free: 8.875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.1462, allocations: 1.386 MB / 0.5523 GB, free: 7.484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1462, allocations: 0 / 0.5523 GB, free: 7.484 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1462, allocations: 0 / 0.5523 GB, free: 7.484 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1462, allocations: 0 / 0.5523 GB, free: 7.484 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002335/0.1485, allocations: 1.171 MB / 0.5534 GB, free: 6.262 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.1486, allocations: 8.031 kB / 0.5534 GB, free: 6.254 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.1487, allocations: 122.7 kB / 0.5536 GB, free: 6.125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007485/0.1495, allocations: 144.3 kB / 0.5537 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.1507, allocations: 0.6946 MB / 0.5544 GB, free: 5.246 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1508, allocations: 79.69 kB / 0.5544 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.1509, allocations: 71.94 kB / 0.5545 GB, free: 5.094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1525, allocations: 0.9569 MB / 0.5554 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.1525, allocations: 7.953 kB / 0.5555 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.469e-05/0.1526, allocations: 27.98 kB / 0.5555 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.1527, allocations: 61.28 kB / 0.5555 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.1541, allocations: 0.7858 MB / 0.5563 GB, free: 3.211 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005326/0.1595, allocations: 3.837 MB / 0.5601 GB, free: 15.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.1604, allocations: 0.4895 MB / 0.5605 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/0.1608, allocations: 219.1 kB / 0.5607 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.521e-05/0.1608, allocations: 7.859 kB / 0.5608 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.1609, allocations: 46.55 kB / 0.5608 GB, free: 14.33 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.1609, allocations: 0 / 0.5608 GB, free: 14.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.01158/0.1725, allocations: 3.781 MB / 0.5645 GB, free: 10.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1726, allocations: 107.2 kB / 0.5646 GB, free: 10.26 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009032/0.1735, allocations: 0.5261 MB / 0.5651 GB, free: 9.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.516e-05/0.1736, allocations: 37.73 kB / 0.5651 GB, free: 9.688 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.1739, allocations: 412.1 kB / 0.5655 GB, free: 9.277 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.1742, allocations: 202.3 kB / 0.5657 GB, free: 9.078 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.1745, allocations: 130.6 kB / 0.5659 GB, free: 8.941 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002263/0.1747, allocations: 370.8 kB / 0.5662 GB, free: 8.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.1753, allocations: 289.8 kB / 0.5665 GB, free: 8.289 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007518/0.176, allocations: 0.4956 MB / 0.567 GB, free: 7.691 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.1773, allocations: 0.852 MB / 0.5678 GB, free: 6.738 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1774, allocations: 7.938 kB / 0.5678 GB, free: 6.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003673/0.181, allocations: 1.457 MB / 0.5692 GB, free: 5.215 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.1811, allocations: 8 kB / 0.5692 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.1811, allocations: 8 kB / 0.5692 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.1828, allocations: 471.2 kB / 0.5697 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.1833, allocations: 115.8 kB / 0.5698 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/0.1954, allocations: 9.218 MB / 0.5788 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/0.1961, allocations: 31.92 kB / 0.5788 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.1961, allocations: 31.94 kB / 0.5789 GB, free: 10.76 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005277/0.1967, allocations: 314.2 kB / 0.5792 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1968, allocations: 67.58 kB / 0.5792 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003437/0.2003, allocations: 1.303 MB / 0.5805 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.2003, allocations: 8 kB / 0.5805 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.2003, allocations: 4 kB / 0.5805 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.2003, allocations: 3.984 kB / 0.5805 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004992/0.2053, allocations: 2.264 MB / 0.5827 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2053, allocations: 0 / 0.5827 GB, free: 6.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003759/0.2057, allocations: 59.89 kB / 0.5828 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.2073, allocations: 447.1 kB / 0.5832 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.907e-05/0.2074, allocations: 27.94 kB / 0.5832 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2753/0.4827, allocations: 8.956 MB / 0.592 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4827, allocations: 1.906 kB / 0.592 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/0.487, allocations: 1.848 MB / 0.5938 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.4875, allocations: 209.2 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.4876, allocations: 12.44 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.4881, allocations: 19.31 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003136/0.4884, allocations: 57.05 kB / 0.5941 GB, free: 47.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.154e-05/0.4884, allocations: 16.78 kB / 0.5941 GB, free: 47.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000687/0.4891, allocations: 373.5 kB / 0.5944 GB, free: 46.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4891, allocations: 3.812 kB / 0.5945 GB, free: 46.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0019/0.491, allocations: 253.1 kB / 0.5947 GB, free: 46.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004756/0.4958, allocations: 2.426 MB / 0.5971 GB, free: 45.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.4985, allocations: 1.333 MB / 0.5984 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.4985, allocations: 0 / 0.5984 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.5004, allocations: 0.9708 MB / 0.5993 GB, free: 43.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.5015, allocations: 175.1 kB / 0.5995 GB, free: 43.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.5182, allocations: 7.677 MB / 0.607 GB, free: 39.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.5195, allocations: 1.059 MB / 0.608 GB, free: 38.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006525/0.5202, allocations: 114.8 kB / 0.6081 GB, free: 38.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004198/0.5206, allocations: 265.4 kB / 0.6084 GB, free: 38.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5206, allocations: 0 / 0.6084 GB, free: 38.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07247/0.5931, allocations: 21.57 MB / 0.6294 GB, free: 24.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.72, allocations: 14.17 kB / 0.6295 GB, free: 24.53 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.881223018004675] Failed to read output from testmodel.py, exit status != 0: 13.84492452199629 13.855181211 13.706706224 Calling exit ...