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.00124/0.001241, allocations: 116.9 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 62.8 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0857/0.08685, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive): time 0.1757/0.2626, allocations: 23.4 MB / 382.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.2787, allocations: 6.832 MB / 389.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006128/0.2849, allocations: 104.3 kB / 389.2 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003697/0.2886, allocations: 0.8084 MB / 390 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004922/0.2936, allocations: 0.869 MB / 390.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.2962, allocations: 0.8089 MB / 391.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006007/0.3022, allocations: 3.474 MB / 395.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.3059, allocations: 1.972 MB / 397.2 MB, free: 240 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003364/0.3093, allocations: 1.294 MB / 398.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003385/0.3127, allocations: 1.402 MB / 399.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/0.3141, allocations: 379.9 kB / 400.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00184/0.316, allocations: 423.8 kB / 400.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007464/0.3167, allocations: 0.7055 MB / 401.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.319, allocations: 1.615 MB / 403 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005431/0.3244, allocations: 4.493 MB / 407.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3244, allocations: 3.938 kB / 407.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3244, allocations: 0 / 407.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.037e-05/0.3245, allocations: 0.9375 kB / 407.5 MB, free: 9.445 MB / 318.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.00697/0.3315, allocations: 3.05 MB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3315, allocations: 8.438 kB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/0.333, allocations: 371.9 kB / 410.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/0.3367, allocations: 1.488 MB / 412.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.3369, allocations: 193.4 kB / 412.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004917/0.3374, allocations: 275.3 kB / 412.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00612/0.3435, allocations: 2.459 MB / 415.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.543e-05/0.3436, allocations: 7.906 kB / 415.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002785/0.3439, allocations: 108.8 kB / 415.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.885e-05/0.344, allocations: 64 kB / 415.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004761/0.3488, allocations: 1.658 MB / 417.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01941/0.3682, allocations: 10.21 MB / 427.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/0.3708, allocations: 0.8551 MB / 428.2 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.3722, allocations: 491.3 kB / 428.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.928e-05/0.3723, allocations: 9 kB / 428.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.3724, allocations: 47.5 kB / 428.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=83): time 3.497e-06/0.3724, allocations: 0 / 428.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=89): time 0.007296/0.3797, allocations: 2.671 MB / 431.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.3798, allocations: 127.7 kB / 431.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003109/0.383, allocations: 1.565 MB / 433.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.385e-05/0.3831, allocations: 41.7 kB / 433.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.3843, allocations: 1.281 MB / 434.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/0.3847, allocations: 339.4 kB / 434.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005845/0.3852, allocations: 299.2 kB / 435 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3854, allocations: 301.1 kB / 435.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.3867, allocations: 424.6 kB / 435.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/0.3887, allocations: 1.111 MB / 436.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/0.392, allocations: 1.611 MB / 438.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.698e-05/0.3921, allocations: 8 kB / 438.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization): time 0.00471/0.3968, allocations: 1.672 MB / 440.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.3968, allocations: 20.7 kB / 440.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-05/0.3969, allocations: 27.94 kB / 440.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.3972, allocations: 52.86 kB / 440.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.3992, allocations: 403.3 kB / 440.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.4006, allocations: 1.422 MB / 442.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.4026, allocations: 92.02 kB / 442.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/0.4028, allocations: 80 kB / 442.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002178/0.405, allocations: 0.746 MB / 443 MB, free: 6.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001769/0.4068, allocations: 1.084 MB / 444.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002999/0.4098, allocations: 1.557 MB / 445.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.428e-05/0.4098, allocations: 4.078 kB / 445.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=213) (initialization_lambda0): time 0.004348/0.4142, allocations: 1.637 MB / 447.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.4142, allocations: 16 kB / 447.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.669e-05/0.4143, allocations: 24 kB / 447.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.4145, allocations: 57.47 kB / 447.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.4165, allocations: 387.4 kB / 447.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.4179, allocations: 1.425 MB / 449.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/0.42, allocations: 67.97 kB / 449.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.4202, allocations: 84 kB / 449.3 MB, free: 14.93 MB / 366.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.0005096/0.4208, allocations: 301.8 kB / 449.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/0.4211, allocations: 181.8 kB / 449.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/0.424, allocations: 0.9069 MB / 450.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.424, allocations: 8 kB / 450.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.424, allocations: 0 / 450.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4241, allocations: 3.984 kB / 450.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007149/0.4312, allocations: 2.874 MB / 453.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.4313, allocations: 4 kB / 453.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.4327, allocations: 192.2 kB / 453.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.4328, allocations: 28.84 kB / 453.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.595e-05/0.4329, allocations: 31.88 kB / 453.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0014/0.4343, allocations: 1.39 MB / 455.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.4344, allocations: 7.938 kB / 455.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0038/0.4382, allocations: 1.447 MB / 456.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009235/0.4391, allocations: 322.8 kB / 457 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.4394, allocations: 27.98 kB / 457 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.4405, allocations: 55.95 kB / 457.1 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4407, allocations: 68.45 kB / 457.1 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.335e-05/0.4408, allocations: 28 kB / 457.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002093/0.4429, allocations: 1.028 MB / 458.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4429, allocations: 0 / 458.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003596/0.4465, allocations: 0.7656 MB / 458.9 MB, free: 4.926 MB / 366.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.0002957/0.4468, allocations: 149.2 kB / 459.1 MB, free: 4.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005255/0.4521, allocations: 2.014 MB / 461.1 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.4521, allocations: 5.812 kB / 461.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.4536, allocations: 0.5147 MB / 461.6 MB, free: 2.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.4565, allocations: 446.4 kB / 462.1 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009297/0.4658, allocations: 3.898 MB / 466 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.4674, allocations: 1.479 MB / 467.4 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001527/0.469, allocations: 250.2 kB / 467.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.4694, allocations: 107.4 kB / 467.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4694, allocations: 0 / 467.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of Templates: time 0.0358/0.5052, allocations: 19.68 MB / 487.5 MB, free: 8.441 MB / 398.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 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)