Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008478/0.0008478, allocations: 103.5 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002129/0.0002129, allocations: 11.98 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1936, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2992/0.4929, allocations: 113.9 MB / 0.5112 GB, free: 46.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4932, allocations: 97.78 kB / 0.5113 GB, free: 46.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1187/0.6119, allocations: 57.28 MB / 0.5672 GB, free: 29.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6119, allocations: 0 / 0.5672 GB, free: 29.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.6121, allocations: 62.03 kB / 0.5673 GB, free: 29.86 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.003945/0.616, allocations: 2.566 MB / 0.5698 GB, free: 28.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.6161, allocations: 7.719 kB / 0.5698 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004158/0.6165, allocations: 353.6 kB / 0.5701 GB, free: 28.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008552/0.6174, allocations: 368.4 kB / 0.5705 GB, free: 28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/0.6196, allocations: 1.526 MB / 0.5719 GB, free: 27.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.6197, allocations: 192.9 kB / 0.5721 GB, free: 27.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002706/0.62, allocations: 265.7 kB / 0.5724 GB, free: 27.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003484/0.6235, allocations: 2.435 MB / 0.5748 GB, free: 26.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.026e-05/0.6236, allocations: 15.89 kB / 0.5748 GB, free: 26.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.6238, allocations: 108 kB / 0.5749 GB, free: 26.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-05/0.6238, allocations: 67.94 kB / 0.5749 GB, free: 26.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002673/0.6265, allocations: 1.69 MB / 0.5766 GB, free: 24.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.6369, allocations: 10.48 MB / 0.5868 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.6386, allocations: 0.9092 MB / 0.5877 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.807e-05/0.6387, allocations: 9 kB / 0.5877 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.6387, allocations: 47.52 kB / 0.5878 GB, free: 12.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 3.336e-06/0.6387, allocations: 4 kB / 0.5878 GB, free: 12.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=89): time 0.004383/0.6431, allocations: 2.763 MB / 0.5905 GB, free: 9.629 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.6432, allocations: 115.8 kB / 0.5906 GB, free: 9.492 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.6446, allocations: 1.322 MB / 0.5919 GB, free: 8.172 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.6447, allocations: 45.7 kB / 0.5919 GB, free: 8.121 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005086/0.6452, allocations: 1.285 MB / 0.5932 GB, free: 6.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.6454, allocations: 335.3 kB / 0.5935 GB, free: 6.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.6454, allocations: 36 kB / 0.5935 GB, free: 6.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.6455, allocations: 370.4 kB / 0.5939 GB, free: 6.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006749/0.6462, allocations: 423.8 kB / 0.5943 GB, free: 5.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008754/0.6471, allocations: 1.122 MB / 0.5954 GB, free: 4.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008291/0.6479, allocations: 0.5885 MB / 0.596 GB, free: 3.625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.6479, allocations: 8 kB / 0.596 GB, free: 3.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002238/0.6502, allocations: 1.703 MB / 0.5976 GB, free: 1.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002606/0.6528, allocations: 9.43 MB / 0.6068 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/0.6528, allocations: 24 kB / 0.6069 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001724/0.653, allocations: 56.84 kB / 0.6069 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.6543, allocations: 407.3 kB / 0.6073 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009179/0.6552, allocations: 1.323 MB / 0.6086 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.6564, allocations: 91.86 kB / 0.6087 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.6565, allocations: 88.19 kB / 0.6088 GB, free: 5.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-06/0.6565, allocations: 4 kB / 0.6088 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002151/0.6586, allocations: 1.458 MB / 0.6102 GB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.6587, allocations: 24 kB / 0.6102 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001015/0.6588, allocations: 60.84 kB / 0.6103 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.6599, allocations: 392 kB / 0.6107 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007947/0.6607, allocations: 1.339 MB / 0.612 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/0.6617, allocations: 75.97 kB / 0.612 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.372e-05/0.6618, allocations: 83.94 kB / 0.6121 GB, free: 2.277 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep.y,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 212 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00105/0.6629, allocations: 0.5553 MB / 0.6127 GB, free: 1.711 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.6631, allocations: 173.8 kB / 0.6128 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.6648, allocations: 0.9498 MB / 0.6137 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.6648, allocations: 8 kB / 0.6138 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.6648, allocations: 0 / 0.6138 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.6648, allocations: 3.984 kB / 0.6138 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/0.669, allocations: 2.862 MB / 0.6166 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.6691, allocations: 7.891 kB / 0.6166 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008576/0.6699, allocations: 187.8 kB / 0.6167 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.6701, allocations: 33.12 kB / 0.6168 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/0.6701, allocations: 27.92 kB / 0.6168 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008321/0.671, allocations: 1.292 MB / 0.6181 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.671, allocations: 4 kB / 0.6181 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.6734, allocations: 1.715 MB / 0.6197 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005791/0.674, allocations: 318.8 kB / 0.62 GB, free: 9.715 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.6742, allocations: 27.98 kB / 0.6201 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.6749, allocations: 75.83 kB / 0.6201 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.675, allocations: 60.53 kB / 0.6202 GB, free: 9.555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/0.6751, allocations: 28 kB / 0.6202 GB, free: 9.527 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001363/0.6765, allocations: 0.9805 MB / 0.6212 GB, free: 8.555 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6765, allocations: 4 kB / 0.6212 GB, free: 8.551 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002336/0.6788, allocations: 0.8008 MB / 0.622 GB, free: 7.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003085/0.6819, allocations: 3.372 MB / 0.6253 GB, free: 4.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003276/0.6852, allocations: 2.062 MB / 0.6273 GB, free: 2.176 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6852, allocations: 4.062 kB / 0.6273 GB, free: 2.172 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007985/0.686, allocations: 0.5341 MB / 0.6278 GB, free: 1.625 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.6876, allocations: 397.1 kB / 0.6282 GB, free: 1.238 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02148/0.7091, allocations: 27.44 MB / 0.655 GB, free: 4.641 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.7102, allocations: 1.522 MB / 0.6565 GB, free: 3.082 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001224/0.7114, allocations: 250.6 kB / 0.6567 GB, free: 2.832 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000987/0.7124, allocations: 0.9289 MB / 0.6576 GB, free: 1.902 MB / 442.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7124, allocations: 0 / 0.6576 GB, free: 1.902 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2341/0.9466, allocations: 37.54 MB / 0.6943 GB, free: 118.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.9468, allocations: 207.5 kB / 0.6945 GB, free: 118.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.896/3.842, allocations: 4 kB / 0.6945 GB, free: 118.5 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)