Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001532/0.001532, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 75.88 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3611, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005368/0.3665, allocations: 4.031 MB / 0.5356 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00271/0.3693, allocations: 1.492 MB / 0.537 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.3697, allocations: 14.31 kB / 0.537 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007582/0.3705, allocations: 252.4 kB / 0.5373 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.3708, allocations: 154.9 kB / 0.5374 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.3713, allocations: 187 kB / 0.5376 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.3719, allocations: 0.6415 MB / 0.5382 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004136/0.3724, allocations: 263.3 kB / 0.5385 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003769/0.3728, allocations: 248.3 kB / 0.5387 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.373, allocations: 259.8 kB / 0.539 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.913e-05/0.3731, allocations: 61.41 kB / 0.539 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.422e-05/0.3732, allocations: 62.25 kB / 0.5391 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3733, allocations: 132.9 kB / 0.5392 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.3736, allocations: 289 kB / 0.5395 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007108/0.3743, allocations: 0.7064 MB / 0.5402 GB, free: 6.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3743, allocations: 0 / 0.5402 GB, free: 6.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3743, allocations: 1.312 kB / 0.5402 GB, free: 6.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.3744, allocations: 3.938 kB / 0.5402 GB, free: 6.977 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001315/0.3757, allocations: 0.8412 MB / 0.541 GB, free: 6.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3757, allocations: 9.906 kB / 0.541 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.3758, allocations: 62.5 kB / 0.5411 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.3765, allocations: 403.2 kB / 0.5415 GB, free: 5.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.3765, allocations: 39.67 kB / 0.5415 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-05/0.3766, allocations: 55.27 kB / 0.5416 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007495/0.3773, allocations: 457.6 kB / 0.542 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.3774, allocations: 0.8438 kB / 0.542 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.5e-05/0.3774, allocations: 20 kB / 0.542 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.3774, allocations: 11.84 kB / 0.542 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005868/0.378, allocations: 307.3 kB / 0.5423 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.3804, allocations: 1.655 MB / 0.5439 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007913/0.3812, allocations: 385 kB / 0.5443 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.3815, allocations: 122.9 kB / 0.5444 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3815, allocations: 3.062 kB / 0.5444 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.3815, allocations: 36.28 kB / 0.5445 GB, free: 3.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.3815, allocations: 0 / 0.5445 GB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001717/0.3833, allocations: 0.8955 MB / 0.5453 GB, free: 2.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.3833, allocations: 53.78 kB / 0.5454 GB, free: 2.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.3838, allocations: 394.8 kB / 0.5458 GB, free: 2.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3838, allocations: 34.98 kB / 0.5458 GB, free: 2.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.384, allocations: 280.9 kB / 0.5461 GB, free: 2.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.3841, allocations: 89.52 kB / 0.5461 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.3842, allocations: 61.92 kB / 0.5462 GB, free: 2.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3844, allocations: 351.9 kB / 0.5465 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.3846, allocations: 96.97 kB / 0.5466 GB, free: 1.859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3848, allocations: 156.8 kB / 0.5468 GB, free: 1.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.3853, allocations: 254 kB / 0.547 GB, free: 1.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3853, allocations: 1.25 kB / 0.547 GB, free: 1.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006107/0.3859, allocations: 359.5 kB / 0.5474 GB, free: 1.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3859, allocations: 7.938 kB / 0.5474 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3859, allocations: 4 kB / 0.5474 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.3861, allocations: 20.84 kB / 0.5474 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.3864, allocations: 72.12 kB / 0.5475 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.3874, allocations: 1.376 MB / 0.5488 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.3877, allocations: 15.98 kB / 0.5488 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.3877, allocations: 15.94 kB / 0.5488 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002814/0.388, allocations: 200.1 kB / 0.549 GB, free: 15.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001859/0.3882, allocations: 164.5 kB / 0.5492 GB, free: 15.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003276/0.3885, allocations: 239.6 kB / 0.5494 GB, free: 14.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.3885, allocations: 0 / 0.5494 GB, free: 14.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0004943/0.389, allocations: 334 kB / 0.5497 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.389, allocations: 8.25 kB / 0.5497 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.389, allocations: 4 kB / 0.5497 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.479e-05/0.3891, allocations: 24.84 kB / 0.5498 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.3894, allocations: 63.91 kB / 0.5498 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008729/0.3903, allocations: 1.382 MB / 0.5512 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.3904, allocations: 16.03 kB / 0.5512 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3905, allocations: 12 kB / 0.5512 GB, free: 12.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0001368/0.3906, allocations: 204.2 kB / 0.5514 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.3907, allocations: 39.53 kB / 0.5514 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.781e-05/0.3908, allocations: 43.5 kB / 0.5515 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3908, allocations: 4 kB / 0.5515 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3908, allocations: 0 / 0.5515 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3908, allocations: 0 / 0.5515 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.392, allocations: 0.847 MB / 0.5523 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.392, allocations: 0 / 0.5523 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.3923, allocations: 51.91 kB / 0.5524 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.718e-05/0.3924, allocations: 24.84 kB / 0.5524 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.3924, allocations: 7.938 kB / 0.5524 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008947/0.3933, allocations: 1.379 MB / 0.5537 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3933, allocations: 4.031 kB / 0.5537 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007018/0.394, allocations: 485.3 kB / 0.5542 GB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.3941, allocations: 120.7 kB / 0.5543 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.3942, allocations: 4 kB / 0.5543 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.3944, allocations: 15.98 kB / 0.5543 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.3944, allocations: 23.92 kB / 0.5544 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3945, allocations: 4 kB / 0.5544 GB, free: 9.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003099/0.3948, allocations: 283.2 kB / 0.5546 GB, free: 9.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3948, allocations: 0 / 0.5546 GB, free: 9.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006241/0.3954, allocations: 144 kB / 0.5548 GB, free: 9.027 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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.0001282/0.3956, allocations: 107.1 kB / 0.5549 GB, free: 8.914 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.3966, allocations: 0.5948 MB / 0.5555 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3966, allocations: 0 / 0.5555 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.3969, allocations: 218.6 kB / 0.5557 GB, free: 8.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005427/0.3975, allocations: 88.47 kB / 0.5558 GB, free: 7.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.3993, allocations: 1.038 MB / 0.5568 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.3998, allocations: 0.8347 MB / 0.5576 GB, free: 6.035 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.126e-05/0.3999, allocations: 27.44 kB / 0.5576 GB, free: 6.008 MB / 414.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3999, allocations: 0 / 0.5576 GB, free: 6.008 MB / 414.1 MB Notification: Performance of Templates: time 0.01051/0.4104, allocations: 7.22 MB / 0.5647 GB, free: 14.79 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)