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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009482/0.0009481, allocations: 105.6 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 55.91 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2102, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.01641/0.2266, allocations: 23.09 MB / 430.1 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.2378, allocations: 6.649 MB / 436.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003727/0.2415, allocations: 103.6 kB / 436.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.2437, allocations: 0.6872 MB / 437.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.246, allocations: 0.7213 MB / 438.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.2472, allocations: 0.7177 MB / 439 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003054/0.2503, allocations: 3.291 MB / 442.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.2523, allocations: 1.72 MB / 444 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00145/0.2538, allocations: 1.136 MB / 445.2 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.255, allocations: 1.31 MB / 446.5 MB, free: 4.172 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002974/0.2553, allocations: 220 kB / 446.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005199/0.2558, allocations: 272 kB / 447 MB, free: 3.691 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003721/0.2562, allocations: 0.5562 MB / 447.5 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.2574, allocations: 1.45 MB / 449 MB, free: 1.676 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003276/0.2607, allocations: 4.318 MB / 453.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.2607, allocations: 0 / 453.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.2607, allocations: 3.938 kB / 453.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.594e-05/0.2608, allocations: 0 / 453.3 MB, free: 13.34 MB / 330.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.004931/0.2657, allocations: 3.047 MB / 456.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2658, allocations: 8.031 kB / 456.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008241/0.2666, allocations: 369.2 kB / 456.7 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.2686, allocations: 1.45 MB / 458.2 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.2688, allocations: 193.5 kB / 458.3 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000301/0.2691, allocations: 271.8 kB / 458.6 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003765/0.2728, allocations: 2.469 MB / 461.1 MB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/0.2729, allocations: 7.922 kB / 461.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.2731, allocations: 108 kB / 461.2 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.204e-05/0.2731, allocations: 68 kB / 461.3 MB, free: 5.129 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.2762, allocations: 1.65 MB / 462.9 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.288, allocations: 10.31 MB / 473.2 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.2897, allocations: 0.8472 MB / 474.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009459/0.2906, allocations: 488.8 kB / 474.5 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.372e-05/0.2907, allocations: 9 kB / 474.6 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.2907, allocations: 43.56 kB / 474.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=83): time 4.158e-06/0.2908, allocations: 0 / 474.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=89): time 0.004767/0.2955, allocations: 2.682 MB / 477.3 MB, free: 4.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.2956, allocations: 119.8 kB / 477.4 MB, free: 4.348 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.2975, allocations: 1.568 MB / 479 MB, free: 2.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.2976, allocations: 41.7 kB / 479 MB, free: 2.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007669/0.2984, allocations: 1.281 MB / 480.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.2986, allocations: 335.3 kB / 480.6 MB, free: 1.102 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003673/0.299, allocations: 307.2 kB / 480.9 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.344e-05/0.2991, allocations: 301.1 kB / 481.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008173/0.2999, allocations: 420.7 kB / 481.6 MB, free: 88 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.3012, allocations: 1.111 MB / 482.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.3033, allocations: 1.608 MB / 484.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.3033, allocations: 8 kB / 484.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002807/0.3061, allocations: 1.68 MB / 486 MB, free: 11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.3061, allocations: 12 kB / 486 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.3062, allocations: 28.66 kB / 486.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.3064, allocations: 56.84 kB / 486.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.3076, allocations: 395.4 kB / 486.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009369/0.3085, allocations: 1.327 MB / 487.8 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.3096, allocations: 84 kB / 487.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-05/0.3097, allocations: 84 kB / 488 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001379/0.3111, allocations: 0.7436 MB / 488.7 MB, free: 8.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001079/0.3122, allocations: 1.076 MB / 489.8 MB, free: 6.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001918/0.3141, allocations: 1.565 MB / 491.4 MB, free: 4.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.021e-05/0.3142, allocations: 8 kB / 491.4 MB, free: 4.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002559/0.3167, allocations: 1.637 MB / 493 MB, free: 3.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3168, allocations: 18.8 kB / 493 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/0.3168, allocations: 24 kB / 493.1 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001242/0.3169, allocations: 56.8 kB / 493.1 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.318, allocations: 383.4 kB / 493.5 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008711/0.3189, allocations: 1.327 MB / 494.8 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.32, allocations: 80.06 kB / 494.9 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.3201, allocations: 80 kB / 495 MB, free: 1.102 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (212): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002984/0.3204, allocations: 303.5 kB / 495.3 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.3206, allocations: 177.8 kB / 495.5 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.3224, allocations: 0.9068 MB / 496.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3224, allocations: 8 kB / 496.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3224, allocations: 0 / 496.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3224, allocations: 3.984 kB / 496.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.3268, allocations: 2.887 MB / 499.3 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.3268, allocations: 7.984 kB / 499.3 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007932/0.3276, allocations: 179.7 kB / 499.4 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.3278, allocations: 33.31 kB / 499.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.3278, allocations: 31.92 kB / 499.5 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008946/0.3287, allocations: 1.295 MB / 0.4891 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3287, allocations: 4 kB / 0.4891 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/0.3406, allocations: 7.898 MB / 0.4968 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/0.3411, allocations: 318.9 kB / 0.4971 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.3413, allocations: 28.16 kB / 0.4971 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000667/0.3419, allocations: 51.95 kB / 0.4972 GB, free: 2.359 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.3421, allocations: 72.44 kB / 0.4972 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.509e-05/0.3422, allocations: 31.98 kB / 0.4973 GB, free: 2.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00134/0.3435, allocations: 1.024 MB / 0.4983 GB, free: 1.242 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3435, allocations: 0 / 0.4983 GB, free: 1.242 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002675/0.3462, allocations: 1.078 MB / 0.4993 GB, free: 168 kB / 378.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 (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003032/0.3465, allocations: 153.2 kB / 0.4995 GB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.167/0.5135, allocations: 2.015 MB / 0.5014 GB, free: 90.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.5135, allocations: 0 / 0.5014 GB, free: 90.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.5144, allocations: 0.5151 MB / 0.5019 GB, free: 90.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.5166, allocations: 402.2 kB / 0.5023 GB, free: 90.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006375/0.5229, allocations: 5.579 MB / 0.5078 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.524, allocations: 1.497 MB / 0.5092 GB, free: 86.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001189/0.5252, allocations: 255.9 kB / 0.5095 GB, free: 86.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.5255, allocations: 125.5 kB / 0.5096 GB, free: 86.28 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5255, allocations: 0 / 0.5096 GB, free: 86.28 MB / 378.7 MB Notification: Performance of Templates: time 0.02969/0.5552, allocations: 21.14 MB / 0.5302 GB, free: 69.64 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)