Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2463/0.2463, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 75.86 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4751/0.4767, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006887/0.4836, allocations: 4.542 MB / 0.5354 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.4869, allocations: 1.655 MB / 0.537 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004108/0.4874, allocations: 16.59 kB / 0.537 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008167/0.4882, allocations: 299.8 kB / 0.5373 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.4886, allocations: 170.7 kB / 0.5375 GB, free: 8.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.4891, allocations: 269.4 kB / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.4902, allocations: 0.8457 MB / 0.5386 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006136/0.4908, allocations: 397.1 kB / 0.539 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004866/0.4913, allocations: 311 kB / 0.5392 GB, free: 7.074 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.4917, allocations: 335.7 kB / 0.5396 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.4918, allocations: 81.09 kB / 0.5396 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.4919, allocations: 84.5 kB / 0.5397 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.4921, allocations: 173.8 kB / 0.5399 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003251/0.4924, allocations: 374.9 kB / 0.5402 GB, free: 6.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009264/0.4933, allocations: 0.9257 MB / 0.5412 GB, free: 5.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4934, allocations: 0 / 0.5412 GB, free: 5.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4934, allocations: 1.125 kB / 0.5412 GB, free: 5.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.4934, allocations: 0 / 0.5412 GB, free: 5.648 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001738/0.4951, allocations: 1.015 MB / 0.5421 GB, free: 4.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.4952, allocations: 9.625 kB / 0.5422 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.4953, allocations: 88.5 kB / 0.5422 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007945/0.4961, allocations: 0.5019 MB / 0.5427 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.351e-05/0.4962, allocations: 46.72 kB / 0.5428 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.4963, allocations: 63.67 kB / 0.5428 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.4974, allocations: 0.5979 MB / 0.5434 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.4974, allocations: 9.109 kB / 0.5434 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.426e-05/0.4975, allocations: 25.88 kB / 0.5435 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.4975, allocations: 14.25 kB / 0.5435 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009265/0.4985, allocations: 423.3 kB / 0.5439 GB, free: 3.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.5018, allocations: 2.134 MB / 0.546 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.5031, allocations: 0.5639 MB / 0.5465 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/0.5034, allocations: 179 kB / 0.5467 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.5035, allocations: 7.938 kB / 0.5467 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.5035, allocations: 30.56 kB / 0.5467 GB, free: 1.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.823e-06/0.5035, allocations: 0 / 0.5467 GB, free: 1.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002477/0.506, allocations: 1.13 MB / 0.5478 GB, free: 124 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.506, allocations: 55.41 kB / 0.5479 GB, free: 56 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006228/0.5067, allocations: 0.5262 MB / 0.5484 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.5067, allocations: 29.7 kB / 0.5484 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.507, allocations: 340.2 kB / 0.5487 GB, free: 15.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.031e-05/0.5071, allocations: 122.1 kB / 0.5489 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.5072, allocations: 78.12 kB / 0.5489 GB, free: 14.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5074, allocations: 362.8 kB / 0.5493 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.5077, allocations: 146.5 kB / 0.5494 GB, free: 14.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.5081, allocations: 220.8 kB / 0.5496 GB, free: 14.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/0.5088, allocations: 364.2 kB / 0.55 GB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5088, allocations: 3.938 kB / 0.55 GB, free: 13.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00102/0.5099, allocations: 485 kB / 0.5504 GB, free: 13.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.5099, allocations: 7.938 kB / 0.5504 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.5099, allocations: 4 kB / 0.5504 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/0.5101, allocations: 25.12 kB / 0.5505 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.5105, allocations: 99.88 kB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.5118, allocations: 1.383 MB / 0.5519 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.512, allocations: 19.98 kB / 0.5519 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.5121, allocations: 12 kB / 0.5519 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003944/0.5125, allocations: 257 kB / 0.5522 GB, free: 11.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002851/0.5128, allocations: 211 kB / 0.5524 GB, free: 11.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005207/0.5133, allocations: 332 kB / 0.5527 GB, free: 10.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.268e-06/0.5133, allocations: 4 kB / 0.5527 GB, free: 10.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007746/0.5141, allocations: 450.4 kB / 0.5531 GB, free: 10.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.5141, allocations: 16 kB / 0.5532 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-06/0.5141, allocations: 0 / 0.5532 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.098e-05/0.5142, allocations: 28.84 kB / 0.5532 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.5146, allocations: 87.89 kB / 0.5533 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.5158, allocations: 1.376 MB / 0.5546 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.516, allocations: 15.94 kB / 0.5546 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.5161, allocations: 19.98 kB / 0.5546 GB, free: 8.633 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0001918/0.5163, allocations: 213.1 kB / 0.5549 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-05/0.5163, allocations: 51.34 kB / 0.5549 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.5165, allocations: 61.28 kB / 0.555 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.5165, allocations: 0 / 0.555 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.5165, allocations: 7.938 kB / 0.555 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5165, allocations: 0 / 0.555 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.5183, allocations: 1.067 MB / 0.556 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.5183, allocations: 0 / 0.556 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.5187, allocations: 71.89 kB / 0.5561 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.533e-05/0.5187, allocations: 28.91 kB / 0.5561 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.5188, allocations: 8 kB / 0.5561 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.5199, allocations: 1.386 MB / 0.5575 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5199, allocations: 3.984 kB / 0.5575 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.521, allocations: 0.62 MB / 0.5581 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.5212, allocations: 140.4 kB / 0.5582 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.5212, allocations: 8 kB / 0.5582 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.5215, allocations: 23.98 kB / 0.5582 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.5216, allocations: 23.97 kB / 0.5583 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.5216, allocations: 8 kB / 0.5583 GB, free: 4.664 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004765/0.5221, allocations: 366.9 kB / 0.5586 GB, free: 4.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5221, allocations: 0 / 0.5586 GB, free: 4.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006949/0.5228, allocations: 176 kB / 0.5588 GB, free: 4.137 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.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 (32): * Single equations (assignments): 31 * 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.0001667/0.523, allocations: 117.3 kB / 0.5589 GB, free: 4.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.5244, allocations: 0.7399 MB / 0.5596 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.5244, allocations: 0 / 0.5596 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.5249, allocations: 266.5 kB / 0.5599 GB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006849/0.5255, allocations: 115.2 kB / 0.56 GB, free: 2.863 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.5278, allocations: 1.277 MB / 0.5612 GB, free: 1.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005279/0.5283, allocations: 0.8941 MB / 0.5621 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000253/0.5286, allocations: 56.39 kB / 0.5622 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.5287, allocations: 43.42 kB / 0.5622 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5287, allocations: 0 / 0.5622 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of Templates: time 0.01163/0.5404, allocations: 5.586 MB / 0.5677 GB, free: 10.98 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)