Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001348/0.001348, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001477/0.001477, allocations: 208.3 kB / 20.74 MB, free: 2.336 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.59/1.59, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1887/0.1887, allocations: 38.51 MB / 348.7 MB, free: 2.645 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-master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_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.002004/0.002004, allocations: 67.89 kB / 487.1 MB, free: 22.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1272, allocations: 62.42 MB / 0.5367 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009326/0.1366, allocations: 6.408 MB / 0.5429 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004957/0.1415, allocations: 2.723 MB / 0.5456 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006947/0.1422, allocations: 47.56 kB / 0.5456 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.1435, allocations: 338.1 kB / 0.546 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.145, allocations: 0.587 MB / 0.5465 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007597/0.1458, allocations: 287.5 kB / 0.5468 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001675/0.1475, allocations: 1.207 MB / 0.548 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.1485, allocations: 0.7674 MB / 0.5487 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007814/0.1493, allocations: 0.4905 MB / 0.5492 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008443/0.1502, allocations: 0.5645 MB / 0.5498 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.1503, allocations: 84 kB / 0.5499 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006283/0.1509, allocations: 351.5 kB / 0.5502 GB, free: 9.691 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.1513, allocations: 347.1 kB / 0.5505 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.1517, allocations: 457.9 kB / 0.551 GB, free: 8.902 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.1534, allocations: 1.378 MB / 0.5523 GB, free: 7.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1534, allocations: 0 / 0.5523 GB, free: 7.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1534, allocations: 0 / 0.5523 GB, free: 7.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.1534, allocations: 4 kB / 0.5523 GB, free: 7.516 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.002342/0.1557, allocations: 1.163 MB / 0.5534 GB, free: 6.301 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1558, allocations: 12.03 kB / 0.5535 GB, free: 6.289 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.156, allocations: 122.7 kB / 0.5536 GB, free: 6.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007295/0.1567, allocations: 144.3 kB / 0.5537 GB, free: 6.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.1579, allocations: 0.6947 MB / 0.5544 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.158, allocations: 79.64 kB / 0.5545 GB, free: 5.199 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.1581, allocations: 67.94 kB / 0.5545 GB, free: 5.133 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.1597, allocations: 0.957 MB / 0.5555 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.1597, allocations: 3.953 kB / 0.5555 GB, free: 4.125 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.047e-05/0.1598, allocations: 31.98 kB / 0.5555 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/0.1599, allocations: 57.28 kB / 0.5555 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.1614, allocations: 0.7896 MB / 0.5563 GB, free: 3.25 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.005471/0.1668, allocations: 3.841 MB / 0.5601 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008492/0.1677, allocations: 0.4918 MB / 0.5606 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004382/0.1681, allocations: 219.1 kB / 0.5608 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-05/0.1682, allocations: 15.84 kB / 0.5608 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.1682, allocations: 42.5 kB / 0.5608 GB, free: 14.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 2.214e-06/0.1682, allocations: 0 / 0.5608 GB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.01166/0.1799, allocations: 3.774 MB / 0.5645 GB, free: 10.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.18, allocations: 119.3 kB / 0.5646 GB, free: 10.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008087/0.1808, allocations: 0.5222 MB / 0.5651 GB, free: 9.762 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.1808, allocations: 37.7 kB / 0.5652 GB, free: 9.719 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.1811, allocations: 412 kB / 0.5656 GB, free: 9.309 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.1813, allocations: 202.3 kB / 0.5657 GB, free: 9.109 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.1816, allocations: 130.6 kB / 0.5659 GB, free: 8.973 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1818, allocations: 370.8 kB / 0.5662 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.1822, allocations: 285.8 kB / 0.5665 GB, free: 8.324 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007127/0.183, allocations: 0.5033 MB / 0.567 GB, free: 7.719 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.1842, allocations: 0.852 MB / 0.5678 GB, free: 6.766 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1842, allocations: 0 / 0.5678 GB, free: 6.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003668/0.1879, allocations: 1.454 MB / 0.5692 GB, free: 5.254 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.188, allocations: 12.03 kB / 0.5693 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.188, allocations: 8 kB / 0.5693 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.1899, allocations: 462.9 kB / 0.5697 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005783/0.1904, allocations: 115.8 kB / 0.5698 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/0.203, allocations: 9.227 MB / 0.5788 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006859/0.2037, allocations: 35.98 kB / 0.5789 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-05/0.2038, allocations: 35.98 kB / 0.5789 GB, free: 10.79 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.0004999/0.2043, allocations: 301.5 kB / 0.5792 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.2044, allocations: 67.58 kB / 0.5792 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003288/0.2077, allocations: 1.305 MB / 0.5805 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.2077, allocations: 8.234 kB / 0.5805 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2077, allocations: 11.94 kB / 0.5805 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.2077, allocations: 7.969 kB / 0.5805 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004944/0.2127, allocations: 2.26 MB / 0.5828 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2127, allocations: 0 / 0.5828 GB, free: 6.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.213, allocations: 59.91 kB / 0.5828 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.2147, allocations: 451.1 kB / 0.5832 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.2148, allocations: 15.94 kB / 0.5833 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.288/0.5027, allocations: 8.955 MB / 0.592 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5027, allocations: 4.875 kB / 0.592 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004199/0.5069, allocations: 1.848 MB / 0.5938 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004155/0.5073, allocations: 199.5 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.709e-05/0.5074, allocations: 19.22 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.5078, allocations: 19.17 kB / 0.594 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.5081, allocations: 62.06 kB / 0.5941 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.638e-05/0.5082, allocations: 20.3 kB / 0.5941 GB, free: 47.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005873/0.5088, allocations: 371.5 kB / 0.5945 GB, free: 46.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5088, allocations: 0.8438 kB / 0.5945 GB, free: 46.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001283/0.51, allocations: 251.2 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.005148/0.5152, allocations: 2.426 MB / 0.5971 GB, free: 45.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.5191, allocations: 1.334 MB / 0.5984 GB, free: 44.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5191, allocations: 0.875 kB / 0.5984 GB, free: 44.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.5209, allocations: 0.9674 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.001469/0.5224, allocations: 175 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.01537/0.5378, allocations: 7.687 MB / 0.607 GB, free: 39.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000759/0.5385, allocations: 1.058 MB / 0.608 GB, free: 38.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004836/0.539, allocations: 110.3 kB / 0.6081 GB, free: 38.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.5393, allocations: 266.4 kB / 0.6084 GB, free: 38.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5393, allocations: 1.281 kB / 0.6084 GB, free: 38.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0598/0.5991, allocations: 21.58 MB / 0.6295 GB, free: 24.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.91, allocations: 13.55 kB / 0.6295 GB, free: 24.58 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.15128612704575] Failed to read output from testmodel.py, exit status != 0: 14.013626506086439 14.024208026 13.868531633 Calling exit ...