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.001216/0.001216, allocations: 110 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 206 kB / 19.4 MB, free: 3.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.6 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.2061/0.2061, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 79.88 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3005, allocations: 62.44 MB / 0.5316 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005405/0.306, allocations: 4.034 MB / 0.5356 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.3084, allocations: 1.489 MB / 0.537 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.3087, allocations: 17.56 kB / 0.537 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006725/0.3094, allocations: 259 kB / 0.5373 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.3097, allocations: 134.9 kB / 0.5374 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.3101, allocations: 187.5 kB / 0.5376 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006623/0.3107, allocations: 0.6372 MB / 0.5382 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004431/0.3112, allocations: 274.7 kB / 0.5385 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.3116, allocations: 244.1 kB / 0.5387 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.3119, allocations: 259.5 kB / 0.539 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.255e-05/0.312, allocations: 61.69 kB / 0.539 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.3121, allocations: 61.66 kB / 0.5391 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.26e-05/0.3122, allocations: 133.6 kB / 0.5392 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002351/0.3124, allocations: 284.6 kB / 0.5395 GB, free: 7.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007042/0.3132, allocations: 0.7164 MB / 0.5402 GB, free: 7.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3132, allocations: 1.219 kB / 0.5402 GB, free: 7.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3132, allocations: 4 kB / 0.5402 GB, free: 7.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.3132, allocations: 3.938 kB / 0.5402 GB, free: 7.164 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.00127/0.3145, allocations: 0.8263 MB / 0.541 GB, free: 6.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3145, allocations: 12.42 kB / 0.541 GB, free: 6.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.3146, allocations: 58.69 kB / 0.5411 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.3152, allocations: 412.7 kB / 0.5415 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.3153, allocations: 31.47 kB / 0.5415 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.3153, allocations: 51.97 kB / 0.5415 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.3161, allocations: 463.8 kB / 0.542 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.3162, allocations: 6.25 kB / 0.542 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.3162, allocations: 16.34 kB / 0.542 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.3162, allocations: 10.25 kB / 0.542 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006224/0.3169, allocations: 308.6 kB / 0.5423 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.3193, allocations: 1.655 MB / 0.5439 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009402/0.3203, allocations: 382.3 kB / 0.5443 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.3205, allocations: 122.5 kB / 0.5444 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.3206, allocations: 2.812 kB / 0.5444 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.3206, allocations: 33.28 kB / 0.5444 GB, free: 3.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.134e-06/0.3206, allocations: 4 kB / 0.5444 GB, free: 3.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001812/0.3224, allocations: 0.8874 MB / 0.5453 GB, free: 3.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3225, allocations: 62.08 kB / 0.5454 GB, free: 3.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/0.323, allocations: 389 kB / 0.5457 GB, free: 2.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.323, allocations: 31.83 kB / 0.5458 GB, free: 2.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.3232, allocations: 277.2 kB / 0.546 GB, free: 2.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.641e-05/0.3233, allocations: 89.64 kB / 0.5461 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3234, allocations: 66.2 kB / 0.5462 GB, free: 2.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3236, allocations: 355.7 kB / 0.5465 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.3238, allocations: 100.5 kB / 0.5466 GB, free: 2.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.324, allocations: 157 kB / 0.5468 GB, free: 1.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004601/0.3245, allocations: 247 kB / 0.547 GB, free: 1.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3245, allocations: 11.88 kB / 0.547 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006623/0.3252, allocations: 341.9 kB / 0.5473 GB, free: 1.375 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.3252, allocations: 15.92 kB / 0.5474 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3252, allocations: 0 / 0.5474 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001318/0.3254, allocations: 29.02 kB / 0.5474 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.3257, allocations: 75.89 kB / 0.5475 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.3267, allocations: 1.38 MB / 0.5488 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.327, allocations: 12 kB / 0.5488 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.327, allocations: 15.94 kB / 0.5488 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002644/0.3273, allocations: 208.1 kB / 0.549 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001974/0.3275, allocations: 160.6 kB / 0.5492 GB, free: 15.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003279/0.3278, allocations: 235.6 kB / 0.5494 GB, free: 15.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-06/0.3278, allocations: 0 / 0.5494 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005423/0.3284, allocations: 338.1 kB / 0.5497 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.195e-06/0.3284, allocations: 8 kB / 0.5497 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3284, allocations: 4 kB / 0.5497 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.204e-05/0.3285, allocations: 20.8 kB / 0.5498 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.3287, allocations: 63.91 kB / 0.5498 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009652/0.3297, allocations: 1.379 MB / 0.5512 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.3299, allocations: 16.14 kB / 0.5512 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3299, allocations: 12 kB / 0.5512 GB, free: 13.07 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.0001583/0.3301, allocations: 204.1 kB / 0.5514 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.3301, allocations: 35.53 kB / 0.5514 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.901e-05/0.3302, allocations: 43.52 kB / 0.5515 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3302, allocations: 0 / 0.5515 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3302, allocations: 0 / 0.5515 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3303, allocations: 7.984 kB / 0.5515 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.3315, allocations: 0.847 MB / 0.5523 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.3316, allocations: 4 kB / 0.5523 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.3318, allocations: 47.97 kB / 0.5523 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.022e-05/0.3319, allocations: 28.89 kB / 0.5524 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3319, allocations: 11.94 kB / 0.5524 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009957/0.3329, allocations: 1.367 MB / 0.5537 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.333, allocations: 3.984 kB / 0.5537 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007645/0.3337, allocations: 493.4 kB / 0.5542 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3338, allocations: 112.8 kB / 0.5543 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.3339, allocations: 11.94 kB / 0.5543 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.3341, allocations: 15.98 kB / 0.5543 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.3342, allocations: 23.84 kB / 0.5544 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.3342, allocations: 12 kB / 0.5544 GB, free: 9.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003808/0.3346, allocations: 283.2 kB / 0.5546 GB, free: 9.297 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3346, allocations: 0 / 0.5546 GB, free: 9.297 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005796/0.3352, allocations: 144 kB / 0.5548 GB, free: 9.156 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.0001073/0.3353, allocations: 95.25 kB / 0.5549 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3364, allocations: 0.5907 MB / 0.5554 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.3364, allocations: 0 / 0.5554 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.3368, allocations: 231.5 kB / 0.5557 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005051/0.3373, allocations: 82.62 kB / 0.5557 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.3391, allocations: 1.042 MB / 0.5568 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.3395, allocations: 0.8347 MB / 0.5576 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.748e-05/0.3396, allocations: 31.44 kB / 0.5576 GB, free: 6.141 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3396, allocations: 0 / 0.5576 GB, free: 6.141 MB / 414.1 MB Notification: Performance of Templates: time 0.009954/0.3496, allocations: 7.214 MB / 0.5646 GB, free: 14.94 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)