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.001259/0.001259, allocations: 103.3 kB / 16.92 MB, free: 6.188 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.001333/0.001333, allocations: 191.4 kB / 17.85 MB, free: 5.289 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.369/1.369, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.03 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001304, allocations: 70.36 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.09605, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007359/0.1035, allocations: 6.321 MB / 463.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00369/0.1072, allocations: 2.672 MB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004844/0.1077, allocations: 27.88 kB / 466 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.1089, allocations: 334.1 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001408/0.1103, allocations: 0.5869 MB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.1109, allocations: 287.6 kB / 467.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.1121, allocations: 1.196 MB / 468.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009793/0.1131, allocations: 0.8768 MB / 469.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005735/0.1137, allocations: 486.3 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006124/0.1143, allocations: 0.5294 MB / 470.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.1145, allocations: 88 kB / 470.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.1149, allocations: 331.5 kB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002795/0.1152, allocations: 335.2 kB / 471 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.1156, allocations: 454 kB / 471.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1168, allocations: 1.363 MB / 472.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1168, allocations: 4 kB / 472.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1168, allocations: 0 / 472.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.1168, allocations: 0 / 472.8 MB, free: 8.035 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.001955/0.1188, allocations: 1.148 MB / 474 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.1188, allocations: 19.89 kB / 474 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.119, allocations: 118.7 kB / 474.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006062/0.1196, allocations: 127.9 kB / 474.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009945/0.1206, allocations: 0.6668 MB / 474.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.181e-05/0.1207, allocations: 75.7 kB / 475 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.1208, allocations: 68 kB / 475 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.1222, allocations: 0.957 MB / 476 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.1222, allocations: 11.98 kB / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.604e-05/0.1223, allocations: 31.98 kB / 476 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-05/0.1224, allocations: 49.3 kB / 476.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.1236, allocations: 0.7818 MB / 476.9 MB, free: 3.84 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.004354/0.128, allocations: 3.863 MB / 480.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/0.1288, allocations: 0.5175 MB / 481.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.1292, allocations: 238.5 kB / 481.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.1292, allocations: 7.984 kB / 481.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.1293, allocations: 42.5 kB / 481.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.1293, allocations: 0 / 481.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01037/0.1397, allocations: 3.753 MB / 485.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.1397, allocations: 111.2 kB / 485.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006048/0.1404, allocations: 0.5261 MB / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.1404, allocations: 37.7 kB / 486 MB, free: 10.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.1407, allocations: 399 kB / 486.3 MB, free: 9.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.1408, allocations: 185.3 kB / 486.5 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.141, allocations: 130.6 kB / 486.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1412, allocations: 374.8 kB / 487 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/0.1416, allocations: 281.8 kB / 487.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.1422, allocations: 0.4994 MB / 487.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.1433, allocations: 0.852 MB / 488.6 MB, free: 7.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.1433, allocations: 4 kB / 488.6 MB, free: 7.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003082/0.1464, allocations: 1.441 MB / 490.1 MB, free: 5.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1464, allocations: 11.98 kB / 490.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.1465, allocations: 8 kB / 490.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.1479, allocations: 463.2 kB / 490.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/0.1483, allocations: 115.8 kB / 490.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009741/0.1581, allocations: 9.139 MB / 499.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005765/0.1587, allocations: 27.98 kB / 499.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.693e-05/0.1588, allocations: 31.98 kB / 499.9 MB, free: 11.47 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.0004413/0.1592, allocations: 309.6 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.1594, allocations: 59.25 kB / 0.4885 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.1624, allocations: 1.307 MB / 0.4898 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1624, allocations: 7.938 kB / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.1624, allocations: 4 kB / 0.4898 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1624, allocations: 0 / 0.4898 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004269/0.1667, allocations: 2.256 MB / 0.492 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.1667, allocations: 4 kB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003307/0.1671, allocations: 59.91 kB / 0.4921 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/0.1684, allocations: 435.1 kB / 0.4925 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.76e-05/0.1685, allocations: 12 kB / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009624/0.1781, allocations: 8.867 MB / 0.5011 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1781, allocations: 4.031 kB / 0.5011 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.1817, allocations: 1.843 MB / 0.5029 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.1821, allocations: 200.4 kB / 0.5031 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.1822, allocations: 16.06 kB / 0.5032 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004472/0.1827, allocations: 23.97 kB / 0.5032 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.1829, allocations: 64.47 kB / 0.5032 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.1829, allocations: 16 kB / 0.5033 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004849/0.1834, allocations: 366.8 kB / 0.5036 GB, free: 10.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.1834, allocations: 0 / 0.5036 GB, free: 10.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001018/0.1845, allocations: 259.9 kB / 0.5039 GB, free: 10.55 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.003988/0.1885, allocations: 2.422 MB / 0.5062 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.1908, allocations: 1.409 MB / 0.5076 GB, free: 6.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1909, allocations: 4 kB / 0.5076 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.1923, allocations: 0.9743 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.001086/0.1934, allocations: 171.4 kB / 0.5087 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1793/0.3727, allocations: 7.771 MB / 0.5163 GB, free: 68.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.3734, allocations: 1.049 MB / 0.5173 GB, free: 67.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004469/0.3739, allocations: 110.5 kB / 0.5174 GB, free: 67.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.3742, allocations: 264.2 kB / 0.5177 GB, free: 67.6 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3742, allocations: 0 / 0.5177 GB, free: 67.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04808/0.4223, allocations: 21.3 MB / 0.5385 GB, free: 60.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.53, allocations: 7.5 kB / 0.5385 GB, free: 60.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)