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.001107/0.001107, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009028/0.0009028, allocations: 99.58 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002108/0.0002108, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2078, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.01362/0.2215, allocations: 20.55 MB / 428 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.2318, allocations: 6.411 MB / 434.5 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004086/0.2359, allocations: 99.69 kB / 434.6 MB, free: 0.707 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002023/0.238, allocations: 0.6249 MB / 435.2 MB, free: 80 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.2407, allocations: 0.7018 MB / 435.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001426/0.2421, allocations: 495.3 kB / 436.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.2462, allocations: 3.124 MB / 439.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.248, allocations: 1.296 MB / 440.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001582/0.2496, allocations: 0.9722 MB / 441.8 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.251, allocations: 1.092 MB / 442.8 MB, free: 8.355 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000271/0.2512, allocations: 160 kB / 443 MB, free: 8.199 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004818/0.2517, allocations: 192 kB / 443.2 MB, free: 8.012 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.2521, allocations: 453.9 kB / 443.6 MB, free: 7.566 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005653/0.2526, allocations: 0.5706 MB / 444.2 MB, free: 6.988 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002901/0.2556, allocations: 3.622 MB / 447.8 MB, free: 3.355 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.2556, allocations: 8 kB / 447.8 MB, free: 3.348 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2556, allocations: 4 kB / 447.8 MB, free: 3.344 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.966e-05/0.2556, allocations: 0 / 447.8 MB, free: 3.344 MB / 314.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.004475/0.2601, allocations: 2.614 MB / 450.5 MB, free: 0.668 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.2602, allocations: 8.031 kB / 450.5 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009024/0.2611, allocations: 388.1 kB / 450.8 MB, free: 284 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.2631, allocations: 1.407 MB / 452.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.2632, allocations: 193.2 kB / 452.4 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/0.2635, allocations: 263.9 kB / 452.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004112/0.2677, allocations: 2.478 MB / 455.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.281e-05/0.2677, allocations: 19.83 kB / 455.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.2679, allocations: 108 kB / 455.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.194e-05/0.268, allocations: 63.95 kB / 455.4 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003077/0.2711, allocations: 1.694 MB / 457.1 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.2839, allocations: 10.44 MB / 467.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.2858, allocations: 0.8827 MB / 468.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.2868, allocations: 0.5182 MB / 468.9 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/0.2869, allocations: 9 kB / 468.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.2869, allocations: 43.56 kB / 468.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=84): time 4.078e-06/0.2869, allocations: 4 kB / 469 MB, free: 13.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.005492/0.2924, allocations: 2.79 MB / 471.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.2925, allocations: 115.8 kB / 471.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002108/0.2947, allocations: 1.565 MB / 473.4 MB, free: 8.871 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.2947, allocations: 41.7 kB / 473.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007969/0.2955, allocations: 1.293 MB / 474.8 MB, free: 7.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.2958, allocations: 335.2 kB / 475.1 MB, free: 7.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.397e-05/0.2959, allocations: 39.94 kB / 475.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.296, allocations: 369.9 kB / 475.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007908/0.2968, allocations: 419.8 kB / 475.9 MB, free: 6.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.2981, allocations: 1.132 MB / 477 MB, free: 4.898 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.2991, allocations: 0.5963 MB / 477.6 MB, free: 4.301 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.2992, allocations: 8 kB / 477.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002736/0.3019, allocations: 1.704 MB / 479.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004823/0.3024, allocations: 0.7957 MB / 480.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.3024, allocations: 27.94 kB / 480.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.3026, allocations: 60.84 kB / 480.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.3039, allocations: 407.3 kB / 480.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.3049, allocations: 1.323 MB / 481.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.3061, allocations: 99.94 kB / 482 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.854e-05/0.3062, allocations: 80 kB / 482.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.039e-06/0.3062, allocations: 4 kB / 482.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002279/0.3085, allocations: 1.474 MB / 483.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/0.3085, allocations: 24 kB / 483.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001107/0.3087, allocations: 64.8 kB / 483.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.3098, allocations: 399.7 kB / 484.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008155/0.3106, allocations: 1.323 MB / 485.4 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000942/0.3116, allocations: 79.88 kB / 485.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.558e-05/0.3117, allocations: 84 kB / 485.5 MB, free: 11.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 3 (switch.control,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.000843/0.3125, allocations: 0.5582 MB / 486.1 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.3127, allocations: 181.9 kB / 486.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.3143, allocations: 0.95 MB / 487.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3144, allocations: 11.94 kB / 487.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3144, allocations: 0 / 487.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.3144, allocations: 3.984 kB / 487.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.3183, allocations: 2.969 MB / 490.2 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.3184, allocations: 4 kB / 490.2 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007951/0.3192, allocations: 196 kB / 490.4 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.292e-05/0.3193, allocations: 28.86 kB / 490.4 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.529e-05/0.3193, allocations: 23.98 kB / 490.5 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008624/0.3202, allocations: 1.288 MB / 491.8 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3202, allocations: 4 kB / 491.8 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.3225, allocations: 1.516 MB / 493.3 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005073/0.3231, allocations: 330.8 kB / 493.6 MB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.3232, allocations: 20 kB / 493.6 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006927/0.3239, allocations: 67.95 kB / 493.7 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.3241, allocations: 68.47 kB / 493.7 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.486e-05/0.3241, allocations: 31.92 kB / 493.8 MB, free: 3.168 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001485/0.3256, allocations: 1.024 MB / 494.8 MB, free: 2.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3256, allocations: 3.938 kB / 494.8 MB, free: 2.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002278/0.3279, allocations: 0.7656 MB / 495.6 MB, free: 1.383 MB / 362.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.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y) * Number of discrete variables: 1 (switch.control) * 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.0002442/0.3282, allocations: 141.4 kB / 495.7 MB, free: 1.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003366/0.3315, allocations: 2.062 MB / 497.8 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3316, allocations: 64 / 497.8 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008931/0.3325, allocations: 0.542 MB / 498.3 MB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.3343, allocations: 411 kB / 498.7 MB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006458/0.3408, allocations: 4.921 MB / 0.4918 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.3418, allocations: 1.483 MB / 0.4933 GB, free: 7.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/0.3422, allocations: 123.4 kB / 0.4934 GB, free: 7.559 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.3422, allocations: 0 / 0.4934 GB, free: 7.559 MB / 378.7 MB Notification: Performance of Templates: time 0.2211/0.5633, allocations: 35.98 MB / 0.5285 GB, free: 67.87 MB / 378.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)