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.001577/0.001577, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 198 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2555/0.2555, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 75.88 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4497/0.4512, allocations: 62.44 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.00662/0.4579, allocations: 4.029 MB / 0.5349 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.461, allocations: 1.493 MB / 0.5364 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003475/0.4613, allocations: 14.31 kB / 0.5364 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008044/0.4622, allocations: 261 kB / 0.5366 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.4625, allocations: 145.7 kB / 0.5368 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.463, allocations: 186.5 kB / 0.537 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008421/0.4638, allocations: 0.6396 MB / 0.5376 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005071/0.4643, allocations: 270 kB / 0.5378 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004615/0.4648, allocations: 244.7 kB / 0.5381 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003646/0.4652, allocations: 259.9 kB / 0.5383 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.4653, allocations: 65.69 kB / 0.5384 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.4654, allocations: 61.62 kB / 0.5384 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.4656, allocations: 133.4 kB / 0.5386 GB, free: 7.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003165/0.4659, allocations: 288.7 kB / 0.5388 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008703/0.4668, allocations: 0.7064 MB / 0.5395 GB, free: 6.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4668, allocations: 0 / 0.5395 GB, free: 6.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4668, allocations: 1.688 kB / 0.5395 GB, free: 6.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.4668, allocations: 0 / 0.5395 GB, free: 6.973 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.001684/0.4685, allocations: 0.8331 MB / 0.5403 GB, free: 6.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.4686, allocations: 9.344 kB / 0.5404 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.4687, allocations: 62 kB / 0.5404 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/0.4696, allocations: 416.8 kB / 0.5408 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.602e-05/0.4696, allocations: 38.91 kB / 0.5408 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.4697, allocations: 51.75 kB / 0.5409 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00098/0.4707, allocations: 461 kB / 0.5413 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.4708, allocations: 1.719 kB / 0.5413 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.27e-05/0.4708, allocations: 20.03 kB / 0.5414 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.755e-05/0.4709, allocations: 10.94 kB / 0.5414 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007826/0.4716, allocations: 303.3 kB / 0.5417 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.4746, allocations: 1.652 MB / 0.5433 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.4757, allocations: 394.1 kB / 0.5436 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.476, allocations: 118.1 kB / 0.5438 GB, free: 3.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.476, allocations: 2.656 kB / 0.5438 GB, free: 3.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.4761, allocations: 36.94 kB / 0.5438 GB, free: 3.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/0.4761, allocations: 0 / 0.5438 GB, free: 3.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001951/0.478, allocations: 0.8873 MB / 0.5447 GB, free: 2.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.4781, allocations: 59.03 kB / 0.5447 GB, free: 2.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006287/0.4787, allocations: 401.4 kB / 0.5451 GB, free: 2.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.4788, allocations: 30.8 kB / 0.5451 GB, free: 2.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.4791, allocations: 277.1 kB / 0.5454 GB, free: 2.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.4792, allocations: 89.55 kB / 0.5455 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.4793, allocations: 63.11 kB / 0.5455 GB, free: 2.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.4795, allocations: 350.5 kB / 0.5459 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.4798, allocations: 101.5 kB / 0.546 GB, free: 1.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.4801, allocations: 156.7 kB / 0.5461 GB, free: 1.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005618/0.4807, allocations: 254.6 kB / 0.5464 GB, free: 1.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4807, allocations: 1.531 kB / 0.5464 GB, free: 1.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007165/0.4814, allocations: 355.1 kB / 0.5467 GB, free: 1.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.4814, allocations: 7.938 kB / 0.5467 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.4815, allocations: 4 kB / 0.5467 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002092/0.4817, allocations: 20.84 kB / 0.5467 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.482, allocations: 76.11 kB / 0.5468 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.4834, allocations: 1.372 MB / 0.5481 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.4836, allocations: 15.98 kB / 0.5482 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.4836, allocations: 15.94 kB / 0.5482 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002972/0.4839, allocations: 204.1 kB / 0.5484 GB, free: 15.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002133/0.4841, allocations: 160.5 kB / 0.5485 GB, free: 15.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003623/0.4845, allocations: 235.6 kB / 0.5488 GB, free: 14.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.282e-06/0.4845, allocations: 0 / 0.5488 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005494/0.4851, allocations: 338.1 kB / 0.5491 GB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.4851, allocations: 8.125 kB / 0.5491 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4851, allocations: 7.938 kB / 0.5491 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.47e-05/0.4852, allocations: 24.84 kB / 0.5491 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.4854, allocations: 63.91 kB / 0.5492 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.4866, allocations: 1.383 MB / 0.5505 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.4868, allocations: 12.03 kB / 0.5505 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.4868, allocations: 8 kB / 0.5505 GB, free: 12.95 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.0001738/0.487, allocations: 212.2 kB / 0.5507 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.866e-05/0.487, allocations: 39.53 kB / 0.5508 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.511e-05/0.4871, allocations: 39.52 kB / 0.5508 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4871, allocations: 4 kB / 0.5508 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4871, allocations: 0 / 0.5508 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4872, allocations: 0 / 0.5508 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.4885, allocations: 0.847 MB / 0.5517 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4885, allocations: 0 / 0.5517 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.4888, allocations: 51.91 kB / 0.5517 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.81e-05/0.4889, allocations: 20.86 kB / 0.5517 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.4889, allocations: 7.938 kB / 0.5517 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.4899, allocations: 1.379 MB / 0.5531 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4899, allocations: 7.969 kB / 0.5531 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.4907, allocations: 489.3 kB / 0.5535 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4908, allocations: 116.8 kB / 0.5537 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.4909, allocations: 4 kB / 0.5537 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.4911, allocations: 15.98 kB / 0.5537 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.4912, allocations: 23.91 kB / 0.5537 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.4912, allocations: 8 kB / 0.5537 GB, free: 9.445 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003447/0.4915, allocations: 279.2 kB / 0.554 GB, free: 9.176 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4915, allocations: 4 kB / 0.554 GB, free: 9.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005824/0.4921, allocations: 140 kB / 0.5541 GB, free: 9.035 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.0001456/0.4923, allocations: 111.1 kB / 0.5542 GB, free: 8.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.4934, allocations: 0.5907 MB / 0.5548 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4934, allocations: 0 / 0.5548 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.4937, allocations: 222.6 kB / 0.555 GB, free: 8.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.4944, allocations: 78.33 kB / 0.5551 GB, free: 7.992 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.4963, allocations: 1.009 MB / 0.5561 GB, free: 6.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.4967, allocations: 0.8347 MB / 0.5569 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.4969, allocations: 51.23 kB / 0.5569 GB, free: 6.031 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.899e-05/0.497, allocations: 27.44 kB / 0.557 GB, free: 6.004 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.497, allocations: 0 / 0.557 GB, free: 6.004 MB / 414.1 MB Notification: Performance of Templates: time 0.008993/0.506, allocations: 4.143 MB / 0.561 GB, free: 1.887 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)