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.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/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.00105/0.00105, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.311/1.311, 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/package.mo): time 0.1747/0.1747, allocations: 38.04 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 56.77 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09434, allocations: 58.07 MB / 457 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.00811/0.1025, allocations: 6.332 MB / 463.3 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.1066, allocations: 2.668 MB / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005348/0.1072, allocations: 31.81 kB / 466 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.1084, allocations: 338.1 kB / 466.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.1098, allocations: 0.5909 MB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.1105, allocations: 279.6 kB / 467.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001465/0.112, allocations: 1.188 MB / 468.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.1131, allocations: 0.8806 MB / 469.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007208/0.1139, allocations: 482.4 kB / 469.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000811/0.1147, allocations: 0.5372 MB / 470.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.1149, allocations: 88 kB / 470.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006205/0.1155, allocations: 323.5 kB / 470.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003542/0.1159, allocations: 335.2 kB / 471 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005613/0.1164, allocations: 458 kB / 471.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.1178, allocations: 1.363 MB / 472.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1178, allocations: 0 / 472.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1178, allocations: 0 / 472.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.62e-05/0.1179, allocations: 4 kB / 472.8 MB, free: 8.02 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.002183/0.1201, allocations: 1.141 MB / 474 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.1201, allocations: 15.89 kB / 474 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.1202, allocations: 114.7 kB / 474.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006199/0.1209, allocations: 131.9 kB / 474.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.1219, allocations: 0.6707 MB / 474.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.966e-05/0.122, allocations: 79.7 kB / 475 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1221, allocations: 67.98 kB / 475 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.1235, allocations: 0.957 MB / 476 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.1236, allocations: 0 / 476 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.067e-05/0.1236, allocations: 28 kB / 476 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-05/0.1238, allocations: 57.28 kB / 476.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1251, allocations: 0.7779 MB / 476.8 MB, free: 3.836 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.004912/0.13, allocations: 3.879 MB / 480.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.1309, allocations: 0.5137 MB / 481.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004311/0.1313, allocations: 238.5 kB / 481.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.651e-05/0.1314, allocations: 7.938 kB / 481.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.1314, allocations: 42.5 kB / 481.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.294e-06/0.1314, allocations: 4 kB / 481.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01082/0.1422, allocations: 3.743 MB / 485.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.1423, allocations: 115.2 kB / 485.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007442/0.1431, allocations: 0.5222 MB / 485.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.1432, allocations: 33.7 kB / 485.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.1435, allocations: 403 kB / 486.3 MB, free: 9.859 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.1437, allocations: 193.3 kB / 486.5 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.1439, allocations: 126.6 kB / 486.6 MB, free: 9.539 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.1441, allocations: 370.8 kB / 487 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.1446, allocations: 281.8 kB / 487.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.1453, allocations: 0.5072 MB / 487.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.1465, allocations: 0.8442 MB / 488.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.1465, allocations: 4 kB / 488.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003342/0.1499, allocations: 1.449 MB / 490.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.1499, allocations: 8 kB / 490.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.1499, allocations: 7.938 kB / 490.1 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/0.1515, allocations: 459.2 kB / 490.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.1519, allocations: 115.8 kB / 490.7 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.1625, allocations: 9.145 MB / 499.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/0.1631, allocations: 32.06 kB / 499.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/0.1632, allocations: 31.98 kB / 499.9 MB, free: 11.46 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.0004405/0.1637, allocations: 305.5 kB / 0.4884 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.1639, allocations: 63.23 kB / 0.4885 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/0.1669, allocations: 1.299 MB / 0.4898 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1669, allocations: 8 kB / 0.4898 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.167, allocations: 8 kB / 0.4898 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.167, allocations: 3.984 kB / 0.4898 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004338/0.1713, allocations: 2.248 MB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1713, allocations: 4 kB / 0.492 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.1717, allocations: 63.89 kB / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.1731, allocations: 435.1 kB / 0.4925 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.776e-05/0.1731, allocations: 19.98 kB / 0.4925 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.1832, allocations: 8.859 MB / 0.5011 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1832, allocations: 0 / 0.5011 GB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/0.1869, allocations: 1.851 MB / 0.5029 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.1873, allocations: 204.3 kB / 0.5031 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.1874, allocations: 8 kB / 0.5031 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.1878, allocations: 19.98 kB / 0.5032 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.188, allocations: 56.42 kB / 0.5032 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.1881, allocations: 27.92 kB / 0.5032 GB, free: 11.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000465/0.1885, allocations: 378.9 kB / 0.5036 GB, free: 10.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1885, allocations: 3.938 kB / 0.5036 GB, free: 10.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009934/0.1895, allocations: 248 kB / 0.5038 GB, free: 10.54 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.004084/0.1936, allocations: 2.416 MB / 0.5062 GB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.196, allocations: 1.408 MB / 0.5076 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1961, allocations: 0 / 0.5076 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.1974, allocations: 0.9713 MB / 0.5085 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009641/0.1984, allocations: 177.9 kB / 0.5087 GB, free: 5.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1673/0.3657, allocations: 7.759 MB / 0.5163 GB, free: 67.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.3663, allocations: 1.053 MB / 0.5173 GB, free: 67.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004285/0.3668, allocations: 113.4 kB / 0.5174 GB, free: 67.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002838/0.3671, allocations: 264.4 kB / 0.5177 GB, free: 67.24 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3671, allocations: 1 kB / 0.5177 GB, free: 67.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04716/0.4142, allocations: 21.29 MB / 0.5385 GB, free: 60.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.05, allocations: 7.859 kB / 0.5385 GB, free: 60.09 MB / 398.1 MB (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)