Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009779/0.0009779, allocations: 194.6 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 245.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007674/0.0007674, allocations: 110.8 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002041/0.0002041, allocations: 7.984 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1774, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2581/0.4356, allocations: 114.1 MB / 0.5105 GB, free: 98.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4358, allocations: 85.16 kB / 0.5106 GB, free: 98.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1163/0.5522, allocations: 57.41 MB / 0.5667 GB, free: 45.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5522, allocations: 0 / 0.5667 GB, free: 45.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001446/0.5523, allocations: 59.94 kB / 0.5667 GB, free: 45.59 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: 662 * Number of variables: 662 Notification: Performance of Generate backend data structure: time 0.004458/0.5568, allocations: 2.548 MB / 0.5692 GB, free: 42.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.5569, allocations: 8.031 kB / 0.5692 GB, free: 42.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.558, allocations: 377.1 kB / 0.5696 GB, free: 42.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00236/0.5603, allocations: 1.582 MB / 0.5711 GB, free: 40.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.018e-05/0.5604, allocations: 194.3 kB / 0.5713 GB, free: 40.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002816/0.5607, allocations: 267.9 kB / 0.5716 GB, free: 40.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003432/0.5642, allocations: 2.481 MB / 0.574 GB, free: 37.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.939e-05/0.5642, allocations: 7.906 kB / 0.574 GB, free: 37.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.5644, allocations: 107.9 kB / 0.5741 GB, free: 37.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.5645, allocations: 68 kB / 0.5742 GB, free: 37.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.5672, allocations: 1.701 MB / 0.5758 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009641/0.5768, allocations: 10.57 MB / 0.5862 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.5784, allocations: 1.012 MB / 0.5872 GB, free: 23.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007772/0.5792, allocations: 499.6 kB / 0.5876 GB, free: 23.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.98e-05/0.5793, allocations: 9 kB / 0.5877 GB, free: 23.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.5793, allocations: 43.56 kB / 0.5877 GB, free: 23.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.555e-06/0.5793, allocations: 0 / 0.5877 GB, free: 23.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=90): time 0.004327/0.5837, allocations: 2.789 MB / 0.5904 GB, free: 20.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.5837, allocations: 115.8 kB / 0.5905 GB, free: 20.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.5853, allocations: 1.526 MB / 0.592 GB, free: 18.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.5853, allocations: 45.7 kB / 0.5921 GB, free: 18.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/0.5858, allocations: 1.299 MB / 0.5933 GB, free: 17.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.586, allocations: 339.2 kB / 0.5937 GB, free: 17.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.401e-05/0.586, allocations: 32 kB / 0.5937 GB, free: 17.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.5861, allocations: 369.9 kB / 0.594 GB, free: 16.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.5868, allocations: 427.8 kB / 0.5944 GB, free: 16.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000903/0.5878, allocations: 1.13 MB / 0.5955 GB, free: 14.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.5894, allocations: 1.642 MB / 0.5972 GB, free: 12.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.5894, allocations: 12 kB / 0.5972 GB, free: 12.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.002428/0.5918, allocations: 1.708 MB / 0.5988 GB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002971/0.5921, allocations: 0.7823 MB / 0.5996 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.5922, allocations: 24 kB / 0.5996 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/0.5923, allocations: 56.84 kB / 0.5997 GB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.5935, allocations: 411.3 kB / 0.6001 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007534/0.5942, allocations: 1.323 MB / 0.6014 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.5954, allocations: 96.03 kB / 0.6014 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.5954, allocations: 80 kB / 0.6015 GB, free: 7.902 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-06/0.5955, allocations: 4 kB / 0.6015 GB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001893/0.5974, allocations: 1.481 MB / 0.603 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.5974, allocations: 24 kB / 0.603 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.032e-05/0.5975, allocations: 52.84 kB / 0.603 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.5985, allocations: 407.5 kB / 0.6034 GB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005847/0.5991, allocations: 1.319 MB / 0.6047 GB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009836/0.6001, allocations: 88.03 kB / 0.6048 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/0.6002, allocations: 84 kB / 0.6049 GB, free: 4.316 MB / 378.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 (214): * Single equations (assignments): 213 * 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.0009655/0.6012, allocations: 0.5589 MB / 0.6054 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.6014, allocations: 177.8 kB / 0.6056 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.6029, allocations: 0.95 MB / 0.6065 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.6029, allocations: 12 kB / 0.6065 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6029, allocations: 3.938 kB / 0.6065 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.603, allocations: 7.984 kB / 0.6066 GB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003809/0.6068, allocations: 2.931 MB / 0.6094 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6068, allocations: 4 kB / 0.6094 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008133/0.6076, allocations: 191.7 kB / 0.6096 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001094/0.6077, allocations: 40.94 kB / 0.6096 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/0.6078, allocations: 24 kB / 0.6097 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008224/0.6086, allocations: 1.288 MB / 0.6109 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.6086, allocations: 4 kB / 0.6109 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.6111, allocations: 1.52 MB / 0.6124 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/0.6116, allocations: 318.8 kB / 0.6127 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.6118, allocations: 24 kB / 0.6127 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.6125, allocations: 67.95 kB / 0.6128 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.6126, allocations: 72.44 kB / 0.6129 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.6127, allocations: 24 kB / 0.6129 GB, free: 11.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001387/0.6141, allocations: 0.9887 MB / 0.6139 GB, free: 10.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6141, allocations: 0 / 0.6139 GB, free: 10.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002273/0.6163, allocations: 0.8047 MB / 0.6146 GB, free: 9.977 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (89): * Single equations (assignments): 88 * 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.0004581/0.6168, allocations: 321 kB / 0.615 GB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003528/0.6204, allocations: 2.074 MB / 0.617 GB, free: 7.566 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.6204, allocations: 0 / 0.617 GB, free: 7.566 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008871/0.6213, allocations: 0.5421 MB / 0.6175 GB, free: 7.008 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/0.6238, allocations: 418 kB / 0.6179 GB, free: 6.605 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006681/0.6305, allocations: 4.932 MB / 0.6227 GB, free: 1.594 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.6316, allocations: 1.483 MB / 0.6242 GB, free: 80 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000386/0.632, allocations: 115.5 kB / 0.6243 GB, free: 15.96 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.632, allocations: 4 kB / 0.6243 GB, free: 15.96 MB / 410.7 MB Notification: Performance of Templates: time 0.04454/0.6766, allocations: 36.88 MB / 0.6603 GB, free: 11.1 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)