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.001345/0.001345, allocations: 122.1 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246.9 MB, free: 10.46 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.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 75.88 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3403, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004909/0.3453, allocations: 4.023 MB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.3476, allocations: 1.494 MB / 0.5364 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/0.3479, allocations: 13 kB / 0.5364 GB, free: 9.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006513/0.3485, allocations: 257.3 kB / 0.5366 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002865/0.3488, allocations: 143.4 kB / 0.5368 GB, free: 8.914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.3493, allocations: 186.8 kB / 0.5369 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006861/0.35, allocations: 0.6378 MB / 0.5376 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004448/0.3504, allocations: 274.7 kB / 0.5378 GB, free: 8.199 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003961/0.3508, allocations: 238.6 kB / 0.5381 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003281/0.3512, allocations: 259.8 kB / 0.5383 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.3513, allocations: 61.22 kB / 0.5384 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.3514, allocations: 66.22 kB / 0.5384 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3515, allocations: 125.4 kB / 0.5385 GB, free: 7.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.3518, allocations: 296.7 kB / 0.5388 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008524/0.3527, allocations: 0.7087 MB / 0.5395 GB, free: 6.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.3527, allocations: 0.8125 kB / 0.5395 GB, free: 6.965 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3527, allocations: 0 / 0.5395 GB, free: 6.965 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.3527, allocations: 1.156 kB / 0.5395 GB, free: 6.965 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.001408/0.3541, allocations: 0.8483 MB / 0.5403 GB, free: 6.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.3542, allocations: 9.438 kB / 0.5404 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.3543, allocations: 66.83 kB / 0.5404 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006433/0.355, allocations: 415.6 kB / 0.5408 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.355, allocations: 36.75 kB / 0.5409 GB, free: 5.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.648e-05/0.3551, allocations: 55.44 kB / 0.5409 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008357/0.3559, allocations: 460.8 kB / 0.5413 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.356, allocations: 1.562 kB / 0.5413 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.356, allocations: 16.34 kB / 0.5414 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.356, allocations: 11.12 kB / 0.5414 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.3567, allocations: 311.5 kB / 0.5417 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.3592, allocations: 1.655 MB / 0.5433 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008117/0.36, allocations: 387.3 kB / 0.5437 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.3602, allocations: 118.5 kB / 0.5438 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.3602, allocations: 2.562 kB / 0.5438 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.3603, allocations: 36.78 kB / 0.5438 GB, free: 3.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.714e-06/0.3603, allocations: 0 / 0.5438 GB, free: 3.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001901/0.3622, allocations: 0.9003 MB / 0.5447 GB, free: 2.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.3623, allocations: 53.53 kB / 0.5447 GB, free: 2.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006232/0.3629, allocations: 402.4 kB / 0.5451 GB, free: 2.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.3629, allocations: 30.61 kB / 0.5451 GB, free: 2.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.3632, allocations: 281.7 kB / 0.5454 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.11e-05/0.3633, allocations: 94.48 kB / 0.5455 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.3634, allocations: 57.77 kB / 0.5456 GB, free: 2.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.3637, allocations: 351.9 kB / 0.5459 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.3639, allocations: 100.5 kB / 0.546 GB, free: 1.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.3642, allocations: 161.7 kB / 0.5461 GB, free: 1.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/0.3648, allocations: 257.7 kB / 0.5464 GB, free: 1.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3648, allocations: 1 kB / 0.5464 GB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000708/0.3655, allocations: 349.8 kB / 0.5467 GB, free: 1.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.3656, allocations: 11.94 kB / 0.5467 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.3656, allocations: 4.203 kB / 0.5467 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.3658, allocations: 24.86 kB / 0.5468 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.3662, allocations: 75.89 kB / 0.5468 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.3677, allocations: 1.376 MB / 0.5482 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.368, allocations: 12 kB / 0.5482 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.368, allocations: 15.94 kB / 0.5482 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003564/0.3684, allocations: 208.1 kB / 0.5484 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002165/0.3686, allocations: 152.8 kB / 0.5486 GB, free: 15.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003501/0.369, allocations: 231.6 kB / 0.5488 GB, free: 14.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.604e-06/0.369, allocations: 3.984 kB / 0.5488 GB, free: 14.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005124/0.3695, allocations: 342.2 kB / 0.5491 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.3695, allocations: 8 kB / 0.5491 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3695, allocations: 4 kB / 0.5491 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.58e-05/0.3696, allocations: 20.86 kB / 0.5491 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.3698, allocations: 59.91 kB / 0.5492 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.3709, allocations: 1.391 MB / 0.5506 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.3711, allocations: 16.05 kB / 0.5506 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.3711, allocations: 8 kB / 0.5506 GB, free: 12.89 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.0002447/0.3714, allocations: 208.1 kB / 0.5508 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.3714, allocations: 39.72 kB / 0.5508 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.3716, allocations: 43.52 kB / 0.5509 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3716, allocations: 0 / 0.5509 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3716, allocations: 0 / 0.5509 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3716, allocations: 7.984 kB / 0.5509 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.3733, allocations: 0.8431 MB / 0.5517 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3733, allocations: 0 / 0.5517 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.3735, allocations: 51.91 kB / 0.5517 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.152e-05/0.3736, allocations: 20.92 kB / 0.5518 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.3736, allocations: 15.92 kB / 0.5518 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.3747, allocations: 1.367 MB / 0.5531 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3747, allocations: 0 / 0.5531 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008527/0.3756, allocations: 493.7 kB / 0.5536 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.397e-05/0.3757, allocations: 116.9 kB / 0.5537 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/0.3757, allocations: 8 kB / 0.5537 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.3759, allocations: 19.92 kB / 0.5537 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.38e-05/0.376, allocations: 27.91 kB / 0.5537 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.376, allocations: 7.938 kB / 0.5537 GB, free: 9.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003074/0.3763, allocations: 283.2 kB / 0.554 GB, free: 9.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3763, allocations: 0 / 0.554 GB, free: 9.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005817/0.3769, allocations: 140 kB / 0.5542 GB, free: 8.973 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.0001548/0.3771, allocations: 107.1 kB / 0.5543 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.3782, allocations: 0.5945 MB / 0.5548 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3782, allocations: 0 / 0.5548 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003548/0.3786, allocations: 231.6 kB / 0.5551 GB, free: 8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.3792, allocations: 75.42 kB / 0.5551 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.3814, allocations: 1.031 MB / 0.5561 GB, free: 6.859 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.382, allocations: 0.8308 MB / 0.5569 GB, free: 6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3822, allocations: 43.25 kB / 0.557 GB, free: 5.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.723e-05/0.3823, allocations: 31.44 kB / 0.557 GB, free: 5.926 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3823, allocations: 0 / 0.557 GB, free: 5.926 MB / 414.1 MB Notification: Performance of Templates: time 0.008776/0.3911, allocations: 4.153 MB / 0.5611 GB, free: 1.801 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)