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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 113.2 kB / 16.92 MB, free: 5.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 68.34 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1268, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009709/0.1365, allocations: 6.324 MB / 463.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005003/0.1416, allocations: 2.676 MB / 466 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006801/0.1423, allocations: 31.81 kB / 466 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.1438, allocations: 335.6 kB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002098/0.1459, allocations: 0.5831 MB / 466.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.147, allocations: 287.5 kB / 467.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.1491, allocations: 1.188 MB / 468.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.1506, allocations: 0.8767 MB / 469.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.1516, allocations: 494.3 kB / 469.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.1528, allocations: 0.5255 MB / 470.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002716/0.1531, allocations: 84 kB / 470.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.1543, allocations: 331.5 kB / 470.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008289/0.1552, allocations: 343.1 kB / 471 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.1563, allocations: 454 kB / 471.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001955/0.1582, allocations: 1.363 MB / 472.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1582, allocations: 0 / 472.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1583, allocations: 0 / 472.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.868e-05/0.1583, allocations: 4 kB / 472.8 MB, free: 8.078 MB / 350.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.003167/0.1615, allocations: 1.137 MB / 474 MB, free: 6.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1616, allocations: 15.89 kB / 474 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002119/0.1618, allocations: 118.6 kB / 474.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007661/0.1625, allocations: 135.9 kB / 474.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.1638, allocations: 0.6668 MB / 474.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1639, allocations: 75.7 kB / 475 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.1641, allocations: 68 kB / 475 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.1657, allocations: 0.9608 MB / 476 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.072e-05/0.1658, allocations: 7.984 kB / 476 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.049e-05/0.1659, allocations: 28 kB / 476 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.166, allocations: 53.3 kB / 476.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.1675, allocations: 0.7857 MB / 476.9 MB, free: 3.883 MB / 350.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.00578/0.1733, allocations: 3.867 MB / 480.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008655/0.1742, allocations: 0.5137 MB / 481.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.1746, allocations: 240.9 kB / 481.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.1747, allocations: 11.98 kB / 481.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1747, allocations: 34.56 kB / 481.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.1747, allocations: 0 / 481.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01108/0.1858, allocations: 3.747 MB / 485.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.1859, allocations: 115.3 kB / 485.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007184/0.1867, allocations: 0.5222 MB / 485.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.1867, allocations: 37.7 kB / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.187, allocations: 399 kB / 486.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.1872, allocations: 185.3 kB / 486.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/0.1874, allocations: 126.6 kB / 486.6 MB, free: 9.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1876, allocations: 374.8 kB / 487 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004891/0.1881, allocations: 285.8 kB / 487.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005976/0.1887, allocations: 0.4994 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.1899, allocations: 0.8481 MB / 488.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.1899, allocations: 4 kB / 488.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003424/0.1933, allocations: 1.449 MB / 490.1 MB, free: 5.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.1934, allocations: 11.98 kB / 490.1 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.1934, allocations: 8 kB / 490.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.195, allocations: 459.2 kB / 490.5 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.1955, allocations: 115.8 kB / 490.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.2059, allocations: 9.14 MB / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006267/0.2065, allocations: 27.98 kB / 499.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/0.2066, allocations: 35.92 kB / 499.9 MB, free: 11.52 MB / 382.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%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004939/0.2071, allocations: 313.5 kB / 0.4884 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.2073, allocations: 63.25 kB / 0.4885 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/0.2103, allocations: 1.299 MB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2104, allocations: 4 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2104, allocations: 4 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.2104, allocations: 4 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.2146, allocations: 2.26 MB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/0.2147, allocations: 4 kB / 0.492 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.215, allocations: 59.91 kB / 0.4921 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.2164, allocations: 431.2 kB / 0.4925 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.2164, allocations: 12 kB / 0.4925 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009762/0.2262, allocations: 8.871 MB / 0.5011 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.2262, allocations: 4.031 kB / 0.5011 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004182/0.2304, allocations: 1.843 MB / 0.5029 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003859/0.2308, allocations: 200.2 kB / 0.5031 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.231, allocations: 12.11 kB / 0.5031 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.2314, allocations: 23.98 kB / 0.5032 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.2316, allocations: 68.36 kB / 0.5032 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.2317, allocations: 16 kB / 0.5033 GB, free: 11.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005099/0.2322, allocations: 366.8 kB / 0.5036 GB, free: 10.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2322, allocations: 0 / 0.5036 GB, free: 10.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001083/0.2333, allocations: 256 kB / 0.5038 GB, free: 10.59 MB / 398.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 {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004104/0.2374, allocations: 2.426 MB / 0.5062 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.2401, allocations: 1.401 MB / 0.5076 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.2402, allocations: 0 / 0.5076 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.2417, allocations: 0.9743 MB / 0.5085 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.2429, allocations: 178.1 kB / 0.5087 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/0.4616, allocations: 7.769 MB / 0.5163 GB, free: 67.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008485/0.4625, allocations: 1.051 MB / 0.5173 GB, free: 67.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.4631, allocations: 109.4 kB / 0.5174 GB, free: 67.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.4635, allocations: 263 kB / 0.5177 GB, free: 67.23 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4635, allocations: 0 / 0.5177 GB, free: 67.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06516/0.5287, allocations: 21.3 MB / 0.5385 GB, free: 60.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.18, allocations: 2.578 kB / 0.5385 GB, free: 60.28 MB / 398.1 MB (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)