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.001268/0.001268, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2458/0.2458, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4759/0.4772, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.00578/0.483, allocations: 4.03 MB / 0.5349 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003371/0.4864, allocations: 1.494 MB / 0.5364 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004942/0.4869, allocations: 9 kB / 0.5364 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.488, allocations: 261.2 kB / 0.5366 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.4884, allocations: 149.1 kB / 0.5368 GB, free: 8.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.489, allocations: 187.9 kB / 0.5369 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008647/0.4899, allocations: 0.6505 MB / 0.5376 GB, free: 8.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004518/0.4904, allocations: 262.8 kB / 0.5378 GB, free: 8.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003957/0.4908, allocations: 238.9 kB / 0.5381 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.4911, allocations: 272.9 kB / 0.5383 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.314e-05/0.4912, allocations: 61.78 kB / 0.5384 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.4913, allocations: 61.34 kB / 0.5384 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.4914, allocations: 129.6 kB / 0.5386 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.4917, allocations: 288.4 kB / 0.5388 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000784/0.4925, allocations: 0.7073 MB / 0.5395 GB, free: 6.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4925, allocations: 0 / 0.5395 GB, free: 6.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4925, allocations: 0 / 0.5395 GB, free: 6.934 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.4925, allocations: 0 / 0.5395 GB, free: 6.934 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.001425/0.4939, allocations: 0.8416 MB / 0.5403 GB, free: 6.227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.494, allocations: 9.031 kB / 0.5404 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.4941, allocations: 58.53 kB / 0.5404 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006982/0.4948, allocations: 408.9 kB / 0.5408 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.4949, allocations: 35 kB / 0.5408 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.495, allocations: 51.69 kB / 0.5409 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008553/0.4958, allocations: 460.9 kB / 0.5413 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.4959, allocations: 5.156 kB / 0.5413 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.4959, allocations: 20.16 kB / 0.5414 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.4959, allocations: 11.16 kB / 0.5414 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006077/0.4965, allocations: 299.7 kB / 0.5416 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.4991, allocations: 1.659 MB / 0.5433 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009009/0.5, allocations: 382.3 kB / 0.5436 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.5003, allocations: 122.3 kB / 0.5437 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.5003, allocations: 2.656 kB / 0.5438 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.5004, allocations: 40.83 kB / 0.5438 GB, free: 3.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.5004, allocations: 0 / 0.5438 GB, free: 3.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001968/0.5023, allocations: 0.8918 MB / 0.5447 GB, free: 2.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.5024, allocations: 53.47 kB / 0.5447 GB, free: 2.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.503, allocations: 394.2 kB / 0.5451 GB, free: 2.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.503, allocations: 31.05 kB / 0.5451 GB, free: 2.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.5033, allocations: 281.7 kB / 0.5454 GB, free: 2.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.081e-05/0.5033, allocations: 92.97 kB / 0.5455 GB, free: 2.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.5035, allocations: 62.11 kB / 0.5455 GB, free: 2.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.5037, allocations: 355.3 kB / 0.5459 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.5039, allocations: 97.28 kB / 0.546 GB, free: 1.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.5042, allocations: 157 kB / 0.5461 GB, free: 1.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005329/0.5048, allocations: 250.4 kB / 0.5464 GB, free: 1.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5048, allocations: 5.688 kB / 0.5464 GB, free: 1.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006774/0.5055, allocations: 357.2 kB / 0.5467 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.5055, allocations: 11.94 kB / 0.5467 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.5055, allocations: 0 / 0.5467 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.5057, allocations: 20.84 kB / 0.5467 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.506, allocations: 67.91 kB / 0.5468 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.5074, allocations: 1.388 MB / 0.5482 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.5076, allocations: 19.98 kB / 0.5482 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.5076, allocations: 11.94 kB / 0.5482 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003185/0.5079, allocations: 204.1 kB / 0.5484 GB, free: 15.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002219/0.5082, allocations: 156.4 kB / 0.5485 GB, free: 15.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003642/0.5085, allocations: 243.6 kB / 0.5488 GB, free: 14.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.5086, allocations: 0 / 0.5488 GB, free: 14.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005356/0.5091, allocations: 330 kB / 0.5491 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.5091, allocations: 8 kB / 0.5491 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-06/0.5091, allocations: 4.25 kB / 0.5491 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.47e-05/0.5092, allocations: 24.84 kB / 0.5491 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.5095, allocations: 63.91 kB / 0.5492 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.5105, allocations: 1.383 MB / 0.5505 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.5107, allocations: 8 kB / 0.5505 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.5107, allocations: 12 kB / 0.5505 GB, free: 12.9 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.000152/0.5109, allocations: 209.3 kB / 0.5507 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.218e-05/0.511, allocations: 35.53 kB / 0.5508 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.72e-05/0.511, allocations: 43.52 kB / 0.5508 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.511, allocations: 0 / 0.5508 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5111, allocations: 0 / 0.5508 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.5111, allocations: 7.922 kB / 0.5508 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.5123, allocations: 0.8431 MB / 0.5516 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5123, allocations: 4 kB / 0.5516 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.5126, allocations: 55.91 kB / 0.5517 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.555e-05/0.5127, allocations: 24.83 kB / 0.5517 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.5127, allocations: 11.94 kB / 0.5517 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009884/0.5137, allocations: 1.379 MB / 0.5531 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.5137, allocations: 4.062 kB / 0.5531 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007187/0.5144, allocations: 481.3 kB / 0.5535 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.5146, allocations: 116.8 kB / 0.5537 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.791e-05/0.5146, allocations: 11.98 kB / 0.5537 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.5148, allocations: 12 kB / 0.5537 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.5149, allocations: 23.91 kB / 0.5537 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.5149, allocations: 4 kB / 0.5537 GB, free: 9.402 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003384/0.5153, allocations: 283.2 kB / 0.554 GB, free: 9.129 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5153, allocations: 7.938 kB / 0.554 GB, free: 9.121 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005662/0.5159, allocations: 144 kB / 0.5541 GB, free: 8.98 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.0001474/0.516, allocations: 99.19 kB / 0.5542 GB, free: 8.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.5171, allocations: 0.599 MB / 0.5548 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5171, allocations: 0 / 0.5548 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.5174, allocations: 222.5 kB / 0.555 GB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005466/0.518, allocations: 69.94 kB / 0.5551 GB, free: 7.949 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.5198, allocations: 1.013 MB / 0.5561 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.5202, allocations: 0.8347 MB / 0.5569 GB, free: 6.035 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.5204, allocations: 43.27 kB / 0.5569 GB, free: 5.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.5205, allocations: 27.44 kB / 0.557 GB, free: 5.965 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5205, allocations: 0 / 0.557 GB, free: 5.965 MB / 414.1 MB Notification: Performance of Templates: time 0.008983/0.5295, allocations: 4.158 MB / 0.561 GB, free: 1.836 MB / 414.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)