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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001847, allocations: 67.88 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.218, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.02338/0.2414, allocations: 23.4 MB / 433.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01242/0.2538, allocations: 6.827 MB / 440.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00351/0.2574, allocations: 103.6 kB / 440.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.26, allocations: 0.8142 MB / 441.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.2629, allocations: 0.8677 MB / 441.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.2647, allocations: 0.8154 MB / 442.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.2687, allocations: 3.464 MB / 446.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002635/0.2714, allocations: 1.97 MB / 448.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001642/0.273, allocations: 1.315 MB / 449.5 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001742/0.2748, allocations: 1.4 MB / 450.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005696/0.2754, allocations: 384 kB / 451.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008287/0.2762, allocations: 420 kB / 451.7 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005637/0.2768, allocations: 0.7086 MB / 452.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001717/0.2785, allocations: 1.606 MB / 454 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003742/0.2822, allocations: 4.512 MB / 458.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2823, allocations: 0 / 458.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2823, allocations: 0 / 458.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.625e-05/0.2823, allocations: 0 / 458.5 MB, free: 0.7617 MB / 366.1 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.004658/0.287, allocations: 3.051 MB / 461.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.287, allocations: 16.03 kB / 461.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008693/0.2879, allocations: 361.2 kB / 461.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.29, allocations: 1.493 MB / 463.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.2901, allocations: 193.5 kB / 463.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.2904, allocations: 267.8 kB / 463.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003929/0.2944, allocations: 2.457 MB / 466.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.438e-05/0.2944, allocations: 11.91 kB / 466.4 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.2946, allocations: 108 kB / 466.5 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-05/0.2947, allocations: 64 kB / 466.5 MB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.2977, allocations: 1.658 MB / 468.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.3095, allocations: 10.19 MB / 478.4 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.3112, allocations: 0.8665 MB / 479.2 MB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.3122, allocations: 0.4885 MB / 479.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.3123, allocations: 9 kB / 479.7 MB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.3123, allocations: 43.56 kB / 479.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=83): time 2.534e-06/0.3123, allocations: 0 / 479.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.004881/0.3172, allocations: 2.68 MB / 482.5 MB, free: 7.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.3173, allocations: 115.8 kB / 482.6 MB, free: 7.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.3192, allocations: 1.565 MB / 484.1 MB, free: 6.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.3193, allocations: 41.7 kB / 484.2 MB, free: 6.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007764/0.3201, allocations: 1.288 MB / 485.5 MB, free: 4.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.3203, allocations: 335.4 kB / 485.8 MB, free: 4.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003561/0.3207, allocations: 299.2 kB / 486.1 MB, free: 4.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.3208, allocations: 309.1 kB / 486.4 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007977/0.3216, allocations: 416.7 kB / 486.8 MB, free: 3.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.3228, allocations: 1.111 MB / 487.9 MB, free: 2.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.3249, allocations: 1.608 MB / 489.5 MB, free: 184 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.3249, allocations: 4 kB / 489.5 MB, free: 180 kB / 398.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.002748/0.3276, allocations: 1.681 MB / 491.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3277, allocations: 16 kB / 491.2 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.3277, allocations: 31.97 kB / 491.3 MB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.3279, allocations: 52.84 kB / 491.3 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.3291, allocations: 395.3 kB / 491.7 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009788/0.3301, allocations: 1.422 MB / 493.1 MB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3312, allocations: 92.03 kB / 493.2 MB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-05/0.3313, allocations: 80 kB / 493.3 MB, free: 12.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001331/0.3326, allocations: 0.746 MB / 494 MB, free: 11.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001103/0.3337, allocations: 1.088 MB / 495.1 MB, free: 10.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001869/0.3356, allocations: 1.557 MB / 496.7 MB, free: 8.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.17e-05/0.3357, allocations: 8 kB / 496.7 MB, free: 8.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.002571/0.3382, allocations: 1.633 MB / 498.3 MB, free: 6.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3383, allocations: 12 kB / 498.3 MB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.3383, allocations: 24 kB / 498.3 MB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.3384, allocations: 57.53 kB / 498.4 MB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.3396, allocations: 395.3 kB / 498.8 MB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008972/0.3405, allocations: 1.414 MB / 0.4885 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.3416, allocations: 79.88 kB / 0.4886 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.275e-05/0.3417, allocations: 76.16 kB / 0.4886 GB, free: 4.371 MB / 414.1 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.0003017/0.342, allocations: 315.6 kB / 0.4889 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.3422, allocations: 177.8 kB / 0.4891 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/0.344, allocations: 0.903 MB / 0.49 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.344, allocations: 8 kB / 0.49 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.344, allocations: 0 / 0.49 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.344, allocations: 11.91 kB / 0.49 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004189/0.3482, allocations: 2.878 MB / 0.4928 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3482, allocations: 4 kB / 0.4928 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/0.3491, allocations: 188.2 kB / 0.493 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.372e-05/0.3492, allocations: 28.84 kB / 0.493 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.3492, allocations: 24 kB / 0.493 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008799/0.3501, allocations: 1.386 MB / 0.4944 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3501, allocations: 4 kB / 0.4944 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.3525, allocations: 1.459 MB / 0.4958 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.3529, allocations: 322.8 kB / 0.4961 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001861/0.3531, allocations: 24 kB / 0.4962 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007332/0.3539, allocations: 55.95 kB / 0.4962 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.354, allocations: 68.45 kB / 0.4963 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.862e-05/0.3541, allocations: 24 kB / 0.4963 GB, free: 12.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001321/0.3554, allocations: 1.035 MB / 0.4973 GB, free: 11.13 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3554, allocations: 0 / 0.4973 GB, free: 11.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002116/0.3575, allocations: 0.7578 MB / 0.498 GB, free: 10.38 MB / 430.1 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.000251/0.3578, allocations: 160.6 kB / 0.4982 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003253/0.361, allocations: 2.017 MB / 0.5002 GB, free: 8.176 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3611, allocations: 2 kB / 0.5002 GB, free: 8.176 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000855/0.3619, allocations: 0.5147 MB / 0.5007 GB, free: 7.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.3637, allocations: 449.8 kB / 0.5011 GB, free: 7.223 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.3701, allocations: 3.938 MB / 0.505 GB, free: 3.199 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.3712, allocations: 1.479 MB / 0.5064 GB, free: 1.684 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.3716, allocations: 119.4 kB / 0.5065 GB, free: 1.566 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3716, allocations: 0 / 0.5065 GB, free: 1.566 MB / 430.1 MB Notification: Performance of Templates: time 0.2192/0.5908, allocations: 36.23 MB / 0.5419 GB, free: 125.2 MB / 462.1 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)